<?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 know the number of features being deleted together in an event handler? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-the-number-of-features-being-deleted/m-p/435178#M11787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The IEditor has a &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/#/SelectionCount_Property/0020000000t2000000/"&gt;SelectionCount&lt;/A&gt;&lt;SPAN&gt; property, also&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This property returns the Map's total number of selected features belonging to&amp;nbsp; editable layers.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Nov 2013 12:57:29 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2013-11-07T12:57:29Z</dc:date>
    <item>
      <title>How to know the number of features being deleted together in an event handler?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-the-number-of-features-being-deleted/m-p/435176#M11785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everybody:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am using the IEditEvents_Event.OnDeleteFeature event handler to do some operation associate with the deleted feature. The event is triggered individually for each feature that is deleted. Is there any way I can know how many features are deleted together (say, user chose 10 feature on ArcMap and click "Delete"). I want to let the event handler behave differently when people choose different number of features to delete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 21:03:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-the-number-of-features-being-deleted/m-p/435176#M11785</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2013-11-06T21:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the number of features being deleted together in an event handler?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-the-number-of-features-being-deleted/m-p/435177#M11786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've not tried this, so it may not work as you intend? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why not listen out to the IEditEvents.OnSelectionChanged Event? If the selection exceeds your criteria you set a global boolean to TRUE so when the user attempts to delete the features your IEditEvents.OnDeleteFeature Event tests the boolean? If TRUE then follow some other logic?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 12:45:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-the-number-of-features-being-deleted/m-p/435177#M11786</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2013-11-07T12:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the number of features being deleted together in an event handler?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-the-number-of-features-being-deleted/m-p/435178#M11787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The IEditor has a &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/#/SelectionCount_Property/0020000000t2000000/"&gt;SelectionCount&lt;/A&gt;&lt;SPAN&gt; property, also&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This property returns the Map's total number of selected features belonging to&amp;nbsp; editable layers.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 12:57:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-the-number-of-features-being-deleted/m-p/435178#M11787</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2013-11-07T12:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the number of features being deleted together in an event handler?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-the-number-of-features-being-deleted/m-p/435179#M11788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Hornbydd:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am currently using the IEditor.SelectionCount attribute to monitor the number of features selected. However, this is not always consistent with the number of feature being deleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For example, I can select 100 features, then open the Attribute Window, and then right click on one of the features in the Attribute Window and select "Delete". By doing this I am deleting one feature while 100 are selected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've not tried this, so it may not work as you intend? &lt;BR /&gt;&lt;BR /&gt;Why not listen out to the IEditEvents.OnSelectionChanged Event? If the selection exceeds your criteria you set a global boolean to TRUE so when the user attempts to delete the features your IEditEvents.OnDeleteFeature Event tests the boolean? If TRUE then follow some other logic?&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 18:16:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-the-number-of-features-being-deleted/m-p/435179#M11788</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2013-11-07T18:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to know the number of features being deleted together in an event handler?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-the-number-of-features-being-deleted/m-p/435180#M11789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am current doing this, but this does not always present the number of features being deleted...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The IEditor has a &lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/#/SelectionCount_Property/0020000000t2000000/"&gt;SelectionCount&lt;/A&gt; property, also&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 18:18:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-the-number-of-features-being-deleted/m-p/435180#M11789</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2013-11-07T18:18:49Z</dc:date>
    </item>
  </channel>
</rss>

