SelectionRemovedEventHandler

SelectionRemovedEventHandler

Anonymous
Not applicable
815 Views
1 Reply
Message 1 of 2

SelectionRemovedEventHandler

Anonymous
Not applicable

In my application I want to certain things when the drawing objects are selected. For this purpose I am using editor selection added event handler which works great.

 

But when the drawing objects are gets unselected, I want to handle that event too but selection removed event is not firing up.

 

ed.SelectionAdded += new SelectionAddedEventHandler(ed_SelectionAdded);

ed.SelectionRemoved += new SelectionRemovedEventHandler(ed_SelectionRemoved);

 

Any ideas, suggestion please.

0 Likes
Accepted solutions (1)
816 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

You could use this event:

 

Document doc = Application.DocumentManager.MdiActiveDocument;
doc.ImpliedSelectionChanged += new EventHandler(CurrentDoc_SelectionChanged); private void CurrentDoc_SelectionChanged(object sender, EventArgs e) { }

Triggers at every change in selection...

0 Likes