<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Accessing Style References via ArcObjects in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-style-references-via-arcobjects/m-p/653574#M17536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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).&amp;nbsp; I'd like to find out which styles have been checked without requiring any interaction from the user.&amp;nbsp; Is this possible?&amp;nbsp; I can't find any property or method on any Style Gallery interfaces that might return this information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Private Sub BringUpTheStyleReferencesDialog()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pMxDoc As IMxDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pStyleGallery As IStyleGallery&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pMxDoc = ThisDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pStyleGallery = pMxDoc.StyleGallery&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pStyleDialog As IStyleDialog&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pStyleDialog = New StyleReferencesDialog&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pStyleDialog.DoModal pStyleGallery,Application.hWnd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Sep 2013 16:45:57 GMT</pubDate>
    <dc:creator>StephanieLeusink</dc:creator>
    <dc:date>2013-09-05T16:45:57Z</dc:date>
    <item>
      <title>Accessing Style References via ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-style-references-via-arcobjects/m-p/653574#M17536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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).&amp;nbsp; I'd like to find out which styles have been checked without requiring any interaction from the user.&amp;nbsp; Is this possible?&amp;nbsp; I can't find any property or method on any Style Gallery interfaces that might return this information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Private Sub BringUpTheStyleReferencesDialog()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pMxDoc As IMxDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pStyleGallery As IStyleGallery&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pMxDoc = ThisDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pStyleGallery = pMxDoc.StyleGallery&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pStyleDialog As IStyleDialog&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pStyleDialog = New StyleReferencesDialog&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pStyleDialog.DoModal pStyleGallery,Application.hWnd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 16:45:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-style-references-via-arcobjects/m-p/653574#M17536</guid>
      <dc:creator>StephanieLeusink</dc:creator>
      <dc:date>2013-09-05T16:45:57Z</dc:date>
    </item>
  </channel>
</rss>

