<?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 Re: Getting symbols parameters using ArcObjects in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/getting-symbols-parameters-using-arcobjects/m-p/1179487#M20474</link>
    <description>&lt;P&gt;Are you looking for a "pretty name" for the symbol?&amp;nbsp; Then you can QI to IDisplayName and get the NameString property.&lt;/P&gt;&lt;P&gt;To get the actual attributes, you will have visit all of the interfaces and get the properties.&amp;nbsp; For example, for ICartographicLineSymbol, you would have to query interface to ILineProperties where you can get the ITemplate information and the ILineDecoration information.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcObjects is very bare-bones, you will not find everything in one place.&amp;nbsp; The object model diagrams can tell you all the interfaces you need to visit to find all the properties.&lt;/P&gt;&lt;P&gt;Good Luck&lt;/P&gt;&lt;P&gt;Brent Hoskisson&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2022 15:17:57 GMT</pubDate>
    <dc:creator>BrentHoskisson</dc:creator>
    <dc:date>2022-06-02T15:17:57Z</dc:date>
    <item>
      <title>Getting symbols parameters using ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/getting-symbols-parameters-using-arcobjects/m-p/1179244#M20473</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have FeatureClasses (point, line and polygons) with symbology in cartographic representation. How I can get each symbol's parameters (e.g. for polyline: width, colour, style)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;part of code&lt;/P&gt;&lt;P&gt;Dim featureClass As IFeatureClass = featureWorkspace.OpenFeatureClass('feature_name')&lt;BR /&gt;Dim featureLayer As IFeatureLayer = New FeatureLayer&lt;BR /&gt;featureLayer.FeatureClass = featureClass&lt;BR /&gt;Dim gfl As IGeoFeatureLayer = featureLayer&lt;BR /&gt;Dim pLegInfo As ILegendInfo = featureLayer&lt;BR /&gt;'Dim pLineSymb As ICartographicLineSymbol = TryCast(pLegInfo.LegendGroup(0).Class(3).Symbol, ICartographicLineSymbol)&lt;/P&gt;&lt;P&gt;pLineSymb type is IMultiLayerLineSymbol, so&lt;/P&gt;&lt;P&gt;Dim pLineSymb As IMultiLayerLineSymbol = TryCast(pLegInfo.LegendGroup(0).Class(3).Symbol, IMultiLayerLineSymbol)&lt;BR /&gt;MsgBox("Color " &amp;amp; pLineSymb.Layer(0).Color.RGB)&lt;BR /&gt;MsgBox("Width " &amp;amp; pLineSymb.Layer(0).Width)&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 22:37:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/getting-symbols-parameters-using-arcobjects/m-p/1179244#M20473</guid>
      <dc:creator>drnpb</dc:creator>
      <dc:date>2022-06-01T22:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting symbols parameters using ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/getting-symbols-parameters-using-arcobjects/m-p/1179487#M20474</link>
      <description>&lt;P&gt;Are you looking for a "pretty name" for the symbol?&amp;nbsp; Then you can QI to IDisplayName and get the NameString property.&lt;/P&gt;&lt;P&gt;To get the actual attributes, you will have visit all of the interfaces and get the properties.&amp;nbsp; For example, for ICartographicLineSymbol, you would have to query interface to ILineProperties where you can get the ITemplate information and the ILineDecoration information.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcObjects is very bare-bones, you will not find everything in one place.&amp;nbsp; The object model diagrams can tell you all the interfaces you need to visit to find all the properties.&lt;/P&gt;&lt;P&gt;Good Luck&lt;/P&gt;&lt;P&gt;Brent Hoskisson&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 15:17:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/getting-symbols-parameters-using-arcobjects/m-p/1179487#M20474</guid>
      <dc:creator>BrentHoskisson</dc:creator>
      <dc:date>2022-06-02T15:17:57Z</dc:date>
    </item>
  </channel>
</rss>

