<?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: Change renderer colors in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-renderer-colors/m-p/465393#M12651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use IGeoFeatureLayer to change renderer colors. I used following logic to dynamically change the symbology&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; IGeoFeatureLayer pGeoFLayer = pLayer as IGeoFeatureLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; IUniqueValueRenderer uniqueRenderer = pGeoFLayer.Renderer as IUniqueValueRenderer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; uniqueRenderer.set_Symbol("Change", pSimpleFillSymbol as ISymbol);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2012 13:02:58 GMT</pubDate>
    <dc:creator>sapnas</dc:creator>
    <dc:date>2012-01-18T13:02:58Z</dc:date>
    <item>
      <title>Change renderer colors</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-renderer-colors/m-p/465392#M12650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I must change the symbology of a bunch of layers in an mxd programatically. I have point, line and polygon layers using unique value renderers and class break renderers. The only change needed is the color of the symbol of each unique value/class based on an algorithm, so I've been doing some research to see whether it is likely to make changes to a created renderer without having to extract all its propierties to create it again. So far I don't have much hope about it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway any idea will be really welcome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 12:47:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/change-renderer-colors/m-p/465392#M12650</guid>
      <dc:creator>AleydisG__Pere</dc:creator>
      <dc:date>2012-01-18T12:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change renderer colors</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-renderer-colors/m-p/465393#M12651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use IGeoFeatureLayer to change renderer colors. I used following logic to dynamically change the symbology&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; IGeoFeatureLayer pGeoFLayer = pLayer as IGeoFeatureLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; IUniqueValueRenderer uniqueRenderer = pGeoFLayer.Renderer as IUniqueValueRenderer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; uniqueRenderer.set_Symbol("Change", pSimpleFillSymbol as ISymbol);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 13:02:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/change-renderer-colors/m-p/465393#M12651</guid>
      <dc:creator>sapnas</dc:creator>
      <dc:date>2012-01-18T13:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Change renderer colors</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-renderer-colors/m-p/465394#M12652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Get a reference to the renderer from IGeoFeatureLayer::Renderer.&amp;nbsp; QI to the correct renderer type (IUniqueValueRenderer, IClassBreaksRenderer).&amp;nbsp; Then all you have to do is create the color objects you want and set the symbol properties on the renderer.&amp;nbsp; The way you access the symbols depends on what type of renderer it is.&amp;nbsp; That information is all in the developer help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 13:04:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/change-renderer-colors/m-p/465394#M12652</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-01-18T13:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change renderer colors</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-renderer-colors/m-p/465395#M12653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Get a reference to the renderer from IGeoFeatureLayer::Renderer.&amp;nbsp; QI to the correct renderer type (IUniqueValueRenderer, IClassBreaksRenderer).&amp;nbsp; ...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can you return which renderer a layer is using (in order to QI to the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;correct&lt;/SPAN&gt;&lt;SPAN&gt; renderer type)? Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Aug 2012 07:48:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/change-renderer-colors/m-p/465395#M12653</guid>
      <dc:creator>PeterCrossing</dc:creator>
      <dc:date>2012-08-11T07:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change renderer colors</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/change-renderer-colors/m-p/465396#M12654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have to test for it using the various renderer interfaces.&amp;nbsp; In VB, you use TypeOf.&amp;nbsp; In C# I believe you use Is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If TypeOf renderer Is IUniqueValueRenderer Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim uvRenderer As IUniqueValueRenderer = DirectCast(renderer, IUniqueValueRenderer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ElseIf TypeOf renderer Is IClassBreaksRenderer Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ' handle this type&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 12:41:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/change-renderer-colors/m-p/465396#M12654</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-08-13T12:41:24Z</dc:date>
    </item>
  </channel>
</rss>

