Thanks Iva, that works perfectly.
I just needed to assign the event like so:
.editor.CommandExecuting += editor_CommandExecuting;
One last question. How do I access the clipboard data? What I want to do is loop through the clipboard data before it is pasted to check if it contains any annotations with specific property values.
I can obviously capture the event like so:
Thanks again for your time and help.
All the best,