Accessing Style References via ArcObjects

2243
0
09-05-2013 09:45 AM
StephanieLeusink
New Contributor III
I am looking for a way to use ArcObjects to loop through all of the Style References that are checked within the Style Manager, looking to see if a particular style has been checked.

I know that you can programmatically open the Style References Dialog box (see ESRI's sample code below - yes, I know it's in VBA which is being phased out, but the exact language used doesn't matter to me at this point).  I'd like to find out which styles have been checked without requiring any interaction from the user.  Is this possible?  I can't find any property or method on any Style Gallery interfaces that might return this information.

Thanks!

Private Sub BringUpTheStyleReferencesDialog()
  Dim pMxDoc As IMxDocument
  Dim pStyleGallery As IStyleGallery
  Set pMxDoc = ThisDocument
  Set pStyleGallery = pMxDoc.StyleGallery
  Dim pStyleDialog As IStyleDialog
  Set pStyleDialog = New StyleReferencesDialog
  pStyleDialog.DoModal pStyleGallery,Application.hWnd
End Sub
0 Kudos
0 Replies