<?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 Import Legend Style from Existing Layer to New One in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/import-legend-style-from-existing-layer-to-new-one/m-p/701861#M18789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an AddIn that creates multiple layers of selected features and then turns off the original layers. I would like to take the Legend Style of the original layer and apply it to the new layers when they are added to the legend automatically. The AddIn was built with C# but I could stumble though VB if anyone has examples/ideas in either. Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robbie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Nov 2012 19:46:23 GMT</pubDate>
    <dc:creator>RobertDouglas2</dc:creator>
    <dc:date>2012-11-30T19:46:23Z</dc:date>
    <item>
      <title>Import Legend Style from Existing Layer to New One</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/import-legend-style-from-existing-layer-to-new-one/m-p/701861#M18789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an AddIn that creates multiple layers of selected features and then turns off the original layers. I would like to take the Legend Style of the original layer and apply it to the new layers when they are added to the legend automatically. The AddIn was built with C# but I could stumble though VB if anyone has examples/ideas in either. Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robbie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 19:46:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/import-legend-style-from-existing-layer-to-new-one/m-p/701861#M18789</guid>
      <dc:creator>RobertDouglas2</dc:creator>
      <dc:date>2012-11-30T19:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Import Legend Style from Existing Layer to New One</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/import-legend-style-from-existing-layer-to-new-one/m-p/701862#M18790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you mean that you would like to copy the symbology from one layer to another then you can use the IObjectCopy interface to copy the layer's renderer.&amp;nbsp; You get and set a layer's renderer via IGeoFeatureLayer.Renderer.&amp;nbsp; You could simply set the renderer of one layer to the renderer of another layer but that would result in both layers using the same renderer object in memory.&amp;nbsp; So, you should deep clone the renderer using IObjectCopy and set the second layer's renderer using the clone.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 20:08:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/import-legend-style-from-existing-layer-to-new-one/m-p/701862#M18790</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-11-30T20:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Import Legend Style from Existing Layer to New One</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/import-legend-style-from-existing-layer-to-new-one/m-p/701863#M18791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Neil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got the symbology of the layer with the renderer already. What I need imported from the existing layer to the new one is the formatting style of the way the patch and text (size, font, placement, orientation, etc.) looks in the legend that is inserted in Layout View not just the symbology in the TOC and the legend's patch color. I want to programatically set these properties to be the same as another layer's when my new layer is added; the same way they can be set manually in Legend Properties &amp;gt; "Style..." &amp;gt; Legend Item Selector.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]19662[/ATTACH] [ATTACH=CONFIG]19663[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry I wasn't more specific in my initial post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the support,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Robbie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 12:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/import-legend-style-from-existing-layer-to-new-one/m-p/701863#M18791</guid>
      <dc:creator>RobertDouglas2</dc:creator>
      <dc:date>2012-12-03T12:50:20Z</dc:date>
    </item>
  </channel>
</rss>

