<?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: Adding Event Handler - Delete Graphic Element in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/adding-event-handler-delete-graphic-element/m-p/575235#M15494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Neil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll look at implementing this. Related question: do you know of any current issues with IElement.Locked?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that many years ago there was a bug associated with it, but I have no details (other than an old bug number which I'm unable to find any info on). I was curious if you (or anyone else) know of anything currently wrong with this property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Sep 2013 17:22:04 GMT</pubDate>
    <dc:creator>deleted-user-VeC5jUIlNXtq</dc:creator>
    <dc:date>2013-09-06T17:22:04Z</dc:date>
    <item>
      <title>Adding Event Handler - Delete Graphic Element</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/adding-event-handler-delete-graphic-element/m-p/575233#M15492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got a quick question regarding event handlers. I have a program to lock and unlock graphic elements in the page layout (text, etc...).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue is that "locked" (IElement.Locked = True) elements, can still be deleted, which I would like to prevent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the code to prevent the delete, however I don't know how to add the actual event handler so that when I try to delete a locked element, it catches it and prevents it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess this event handler should work independently of the actual lock/unlock Add-In, however I'm lost at where to begin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any assistance would be greatly appreciated (I'm a bit of an amateur at all of this so more detail is better).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, and let me know if more information is required for this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 00:26:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/adding-event-handler-delete-graphic-element/m-p/575233#M15492</guid>
      <dc:creator>deleted-user-VeC5jUIlNXtq</dc:creator>
      <dc:date>2013-09-05T00:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Event Handler - Delete Graphic Element</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/adding-event-handler-delete-graphic-element/m-p/575234#M15493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The IGraphicsContainerEvents interface has the event you're looking for.&amp;nbsp; You may not be able to prevent the actual delete from taking place but you can probably just add the element back.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 13:01:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/adding-event-handler-delete-graphic-element/m-p/575234#M15493</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-09-05T13:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Event Handler - Delete Graphic Element</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/adding-event-handler-delete-graphic-element/m-p/575235#M15494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Neil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll look at implementing this. Related question: do you know of any current issues with IElement.Locked?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that many years ago there was a bug associated with it, but I have no details (other than an old bug number which I'm unable to find any info on). I was curious if you (or anyone else) know of anything currently wrong with this property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 17:22:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/adding-event-handler-delete-graphic-element/m-p/575235#M15494</guid>
      <dc:creator>deleted-user-VeC5jUIlNXtq</dc:creator>
      <dc:date>2013-09-06T17:22:04Z</dc:date>
    </item>
  </channel>
</rss>

