<?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 can I get the feature count of a layer? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-the-feature-count-of-a-layer/m-p/848226#M4162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to write an add-in for our technicians where in a dockpane I want to show the total amount of features in the layer. So far I only found how to get the count of selected features, but that doesn't help me, since I don't want to run a 'select all' every time there is something going on at the side of our technicians.&lt;/P&gt;&lt;P&gt;In Python there is a getCount method. Is this function available in C# as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bests Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Dec 2017 08:32:43 GMT</pubDate>
    <dc:creator>TomGeo</dc:creator>
    <dc:date>2017-12-08T08:32:43Z</dc:date>
    <item>
      <title>How can I get the feature count of a layer?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-the-feature-count-of-a-layer/m-p/848226#M4162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to write an add-in for our technicians where in a dockpane I want to show the total amount of features in the layer. So far I only found how to get the count of selected features, but that doesn't help me, since I don't want to run a 'select all' every time there is something going on at the side of our technicians.&lt;/P&gt;&lt;P&gt;In Python there is a getCount method. Is this function available in C# as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bests Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 08:32:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-the-feature-count-of-a-layer/m-p/848226#M4162</guid>
      <dc:creator>TomGeo</dc:creator>
      <dc:date>2017-12-08T08:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the feature count of a layer?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-the-feature-count-of-a-layer/m-p/848227#M4163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FeatureClass has method GetCount().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureClass pFeatClass = featLayer.GetFeatureClass();&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int nCount = pFeatClass.GetCount();&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 13:07:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-the-feature-count-of-a-layer/m-p/848227#M4163</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2017-12-08T13:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the feature count of a layer?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-the-feature-count-of-a-layer/m-p/1489839#M11651</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;what if you want to count the records after setting a definition query? Is there a way to get that count without setting a selection?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 01:47:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-the-feature-count-of-a-layer/m-p/1489839#M11651</guid>
      <dc:creator>MK13</dc:creator>
      <dc:date>2024-06-12T01:47:18Z</dc:date>
    </item>
  </channel>
</rss>

