<?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: changing properties of layer files programatically in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/changing-properties-of-layer-files-programatically/m-p/328337#M8536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A layer file doesn't have any properties for you to change.&amp;nbsp; The process would be to open the layer file, get the layer it contains, change that layer however you need to, replace the layer in the layer file with your updated layer, then save the layer file back out.&amp;nbsp; You can use ILayerFile to access the layer file on disk.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jun 2010 17:33:04 GMT</pubDate>
    <dc:creator>NeilClemmons</dc:creator>
    <dc:date>2010-06-01T17:33:04Z</dc:date>
    <item>
      <title>changing properties of layer files programatically</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/changing-properties-of-layer-files-programatically/m-p/328334#M8533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone have sample code showing how to programatically change the properties of a layer file?&amp;nbsp; I am using ArcGIS 9.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David Kelly&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 15:52:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/changing-properties-of-layer-files-programatically/m-p/328334#M8533</guid>
      <dc:creator>DavidKelly1</dc:creator>
      <dc:date>2010-05-03T15:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: changing properties of layer files programatically</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/changing-properties-of-layer-files-programatically/m-p/328335#M8534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Specifically what properties, for what type of layer? Here are a couple of the interfaces that may be used for a standard feature layer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://edndoc.esri.com/arcobjects/9.1/ComponentHelp/esriCarto/ILayer.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://edndoc.esri.com/arcobjects/9.1/ComponentHelp/esriCarto/ILayer.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://edndoc.esri.com/arcobjects/9.1/ComponentHelp/esriCarto/IFeatureLayer2.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://edndoc.esri.com/arcobjects/9.1/ComponentHelp/esriCarto/IFeatureLayer2.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A simple example may be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public Sub SimpleTest()
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pMxDoc As IMxDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pMxDoc = ThisDocument
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pFL As IFeatureLayer
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set pFL = pMxDoc.FocusMap.Layer(0)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; pFL.Name = "new name"
&amp;nbsp;&amp;nbsp;&amp;nbsp; pFL.Visible = False
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; pMxDoc.ActiveView.Refresh
&amp;nbsp;&amp;nbsp;&amp;nbsp; pMxDoc.UpdateContents
End Sub&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:33:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/changing-properties-of-layer-files-programatically/m-p/328335#M8534</guid>
      <dc:creator>JohnHauck</dc:creator>
      <dc:date>2021-12-11T15:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: changing properties of layer files programatically</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/changing-properties-of-layer-files-programatically/m-p/328336#M8535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I guess I was not clear in my original post.&amp;nbsp; I would like to be able to change the properties of a .lyr file.&amp;nbsp; It seems like I should be able to read and change the properties of a lyr file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David Kelly&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jun 2010 13:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/changing-properties-of-layer-files-programatically/m-p/328336#M8535</guid>
      <dc:creator>DavidKelly1</dc:creator>
      <dc:date>2010-06-01T13:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: changing properties of layer files programatically</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/changing-properties-of-layer-files-programatically/m-p/328337#M8536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A layer file doesn't have any properties for you to change.&amp;nbsp; The process would be to open the layer file, get the layer it contains, change that layer however you need to, replace the layer in the layer file with your updated layer, then save the layer file back out.&amp;nbsp; You can use ILayerFile to access the layer file on disk.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jun 2010 17:33:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/changing-properties-of-layer-files-programatically/m-p/328337#M8536</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2010-06-01T17:33:04Z</dc:date>
    </item>
  </channel>
</rss>

