<?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 How to change the color of a layer in ArcMap using C# in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-change-the-color-of-a-layer-in-arcmap-using/m-p/664422#M17819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone, I am a beginner and a student working on project for a class assignment.&amp;nbsp; The basic gist of it is that I need to create a button in C# that will perform the basic function of changing some colors of layers on my map based on the conditions that I will specify in my code.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know how to use the wizard in Visual Studio to create the button itself, and I feel that I can get the code written to specify when a certain layer should be changed, but I am stuck on how get the button to actually change the color of the layer once the conditions are met that require it to be changed.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example.&amp;nbsp; I will write code to say: "when 'x' variable is greater than 10, change 'y' layer in my .mxd file to blue from red. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am attaching a screenshot of a map of the US in ArcMap, and I will want the button to change state colors in the map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, in short, when I have the map pulled up in ArcMap, I need to create a button in C# that when pressed will&amp;nbsp; select a layer in the map (corresponding to California for example), and change it's color from red to green.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas would be much appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Nov 2011 04:19:54 GMT</pubDate>
    <dc:creator>BrandonSlater1</dc:creator>
    <dc:date>2011-11-24T04:19:54Z</dc:date>
    <item>
      <title>How to change the color of a layer in ArcMap using C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-change-the-color-of-a-layer-in-arcmap-using/m-p/664422#M17819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone, I am a beginner and a student working on project for a class assignment.&amp;nbsp; The basic gist of it is that I need to create a button in C# that will perform the basic function of changing some colors of layers on my map based on the conditions that I will specify in my code.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know how to use the wizard in Visual Studio to create the button itself, and I feel that I can get the code written to specify when a certain layer should be changed, but I am stuck on how get the button to actually change the color of the layer once the conditions are met that require it to be changed.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example.&amp;nbsp; I will write code to say: "when 'x' variable is greater than 10, change 'y' layer in my .mxd file to blue from red. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am attaching a screenshot of a map of the US in ArcMap, and I will want the button to change state colors in the map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, in short, when I have the map pulled up in ArcMap, I need to create a button in C# that when pressed will&amp;nbsp; select a layer in the map (corresponding to California for example), and change it's color from red to green.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas would be much appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 04:19:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-change-the-color-of-a-layer-in-arcmap-using/m-p/664422#M17819</guid>
      <dc:creator>BrandonSlater1</dc:creator>
      <dc:date>2011-11-24T04:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the color of a layer in ArcMap using C#</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-change-the-color-of-a-layer-in-arcmap-using/m-p/664423#M17820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anyone...?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 21:42:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-change-the-color-of-a-layer-in-arcmap-using/m-p/664423#M17820</guid>
      <dc:creator>BrandonSlater1</dc:creator>
      <dc:date>2011-11-24T21:42:26Z</dc:date>
    </item>
  </channel>
</rss>

