BeforeAddObjectEventArgs

EventArgs
Event arguments used for Object Added event.

Constructors

BeforeAddObjectEventArgs

#
public BeforeAddObjectEventArgs(IDocumentObject object, Document document)
Create a new BeforeAddObjectEventArgs instance.
object (IDocumentObject)Object that raised the event.
document (Document)Document to which object is about to be added.

Properties

Cancelled

#
public bool Cancelled { get; }
Gets whether the addition has been cancelled.

Document

#
public Document Document { get; }
Gets the document to which this object is about to be added.

Object

#
public IDocumentObject Object { get; }
Gets the object about to be added.

Methods

Cancel

#
public void Cancel()
Call this method to abort the addition.