<?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: How to add a value to a unique value renderer programatically? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-add-a-value-to-a-unique-value-renderer/m-p/78272#M2097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Take a look at the IUniqueValueRenderer interface.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: Red; font-size: 4;"&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size:4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: Red; font-size: 4;"&gt;&lt;STRONG&gt;I finally found an example. I think I can make it work with this &lt;A href="http://resources.esri.com/help/9.3/arcgisdesktop/arcobjects/esricarto/IUniqueValueRenderer_Example.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;old VB6 example&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size:4;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Neil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your suggestion. Do you know of any sample code for doing this? I'm looking at using AddReferenceValue but I'm not clear on the second parameter. I'd like to pass in the name of the new value and use a random color from the current groups color ramp. Several of the properties require a string as part of the parameter. How do I determine the "refValue" to pass into the AddReferenceValue parameter? The help on this is confusing, it seems that Symbol points to ReferenceValue and ReferenceValue points to Symbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IUniqueValueRenderer_Interface/001200000rrq000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;IUniqueValueRenderer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
[C#] public void AddReferenceValue (&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string Value,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string refValue );

[C#] &lt;STRONG&gt;public &lt;/STRONG&gt;string&lt;STRONG&gt; get_ReferenceValue (&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string &lt;SPAN style="font-style:italic;"&gt;Value&lt;/SPAN&gt; &lt;STRONG&gt;);&lt;/STRONG&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 23:00:51 GMT</pubDate>
    <dc:creator>GregRieck</dc:creator>
    <dc:date>2021-12-10T23:00:51Z</dc:date>
    <item>
      <title>How to add a value to a unique value renderer programatically?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-add-a-value-to-a-unique-value-renderer/m-p/78270#M2095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have some sample code or can point me to the ArcObjects needed for adding a new value to a unique value renderer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a layer displaying with a categorized unique value and I would like to programmatically add new values to the list as they are created. I'd like the new values to use a random color from the same color ramp being used by the existing list of unique values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;G&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 21:36:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-add-a-value-to-a-unique-value-renderer/m-p/78270#M2095</guid>
      <dc:creator>GregRieck</dc:creator>
      <dc:date>2011-09-26T21:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a value to a unique value renderer programatically?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-add-a-value-to-a-unique-value-renderer/m-p/78271#M2096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a look at the IUniqueValueRenderer interface.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 14:39:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-add-a-value-to-a-unique-value-renderer/m-p/78271#M2096</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2011-09-27T14:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a value to a unique value renderer programatically?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-add-a-value-to-a-unique-value-renderer/m-p/78272#M2097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Take a look at the IUniqueValueRenderer interface.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: Red; font-size: 4;"&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size:4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: Red; font-size: 4;"&gt;&lt;STRONG&gt;I finally found an example. I think I can make it work with this &lt;A href="http://resources.esri.com/help/9.3/arcgisdesktop/arcobjects/esricarto/IUniqueValueRenderer_Example.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;old VB6 example&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size:4;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Neil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your suggestion. Do you know of any sample code for doing this? I'm looking at using AddReferenceValue but I'm not clear on the second parameter. I'd like to pass in the name of the new value and use a random color from the current groups color ramp. Several of the properties require a string as part of the parameter. How do I determine the "refValue" to pass into the AddReferenceValue parameter? The help on this is confusing, it seems that Symbol points to ReferenceValue and ReferenceValue points to Symbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IUniqueValueRenderer_Interface/001200000rrq000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;IUniqueValueRenderer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
[C#] public void AddReferenceValue (&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string Value,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string refValue );

[C#] &lt;STRONG&gt;public &lt;/STRONG&gt;string&lt;STRONG&gt; get_ReferenceValue (&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string &lt;SPAN style="font-style:italic;"&gt;Value&lt;/SPAN&gt; &lt;STRONG&gt;);&lt;/STRONG&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:00:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-add-a-value-to-a-unique-value-renderer/m-p/78272#M2097</guid>
      <dc:creator>GregRieck</dc:creator>
      <dc:date>2021-12-10T23:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a value to a unique value renderer programatically?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-add-a-value-to-a-unique-value-renderer/m-p/78273#M2098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Grieck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you find your solution? How to pass AddReferenceValue method's parameters?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 04:45:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-add-a-value-to-a-unique-value-renderer/m-p/78273#M2098</guid>
      <dc:creator>naimahossain1</dc:creator>
      <dc:date>2013-04-22T04:45:23Z</dc:date>
    </item>
  </channel>
</rss>

