<?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 find layer type of a layer in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-layer-type-of-a-layer/m-p/551904#M14939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do I find a layer type of an ILayer?&amp;nbsp; For example, if I loop through all ILayers from an IMap, how do I determine whether each ILayer is an IGroupLayer ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I already know I can use IMap.get_Layers(&amp;lt;IUID&amp;gt;, true) to obtain all the layers of a given type according to the passed IUID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I prefer to first obtain all layers, then determine what type of layer it is.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2014 16:17:52 GMT</pubDate>
    <dc:creator>SeanNakasone</dc:creator>
    <dc:date>2014-05-29T16:17:52Z</dc:date>
    <item>
      <title>how to find layer type of a layer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-layer-type-of-a-layer/m-p/551904#M14939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do I find a layer type of an ILayer?&amp;nbsp; For example, if I loop through all ILayers from an IMap, how do I determine whether each ILayer is an IGroupLayer ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I already know I can use IMap.get_Layers(&amp;lt;IUID&amp;gt;, true) to obtain all the layers of a given type according to the passed IUID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I prefer to first obtain all layers, then determine what type of layer it is.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 16:17:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-layer-type-of-a-layer/m-p/551904#M14939</guid>
      <dc:creator>SeanNakasone</dc:creator>
      <dc:date>2014-05-29T16:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to find layer type of a layer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-layer-type-of-a-layer/m-p/551905#M14940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In VB, use TypeOf to test if an object implements a particular interface.&amp;nbsp; In C# use Is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If TypeOf yourLayer Is IGroupLayer Then...it's a group layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (yourLayer is IGroupLayer) {...it's a group layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 17:14:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-layer-type-of-a-layer/m-p/551905#M14940</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2014-05-29T17:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to find layer type of a layer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-layer-type-of-a-layer/m-p/551906#M14941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thank you very much, that works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 17:19:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-layer-type-of-a-layer/m-p/551906#M14941</guid>
      <dc:creator>SeanNakasone</dc:creator>
      <dc:date>2014-05-29T17:19:47Z</dc:date>
    </item>
  </channel>
</rss>

