Typically you handle the ProcessingObject event in order to
determine properties about an IndirectObject
before processing.
Because the handler passes an EventArgs class which inherits from
CancelEventArgs you can also choose to cancel the operation on the
IndirectObject.
To associate the event with your event handle add an instance of
the ProcessingObjectEventHandler delegate to the event. The event
handler will be called whenever the event occurs.
|