DocumentEventArgs.document Property

Parent Object: DocumentEventArgs
Defined in namespace "adsk::core" and the header file is <Core/Application/DocumentEventArgs.h>

Description

Provides access to the document that is open. Can be null in the case where the event is fired before the document has been opened or after it has been closed.

Syntax

"documentEventArgs_var" is a variable referencing a DocumentEventArgs object.

# Get the value of the property.
propertyValue = documentEventArgs_var.document
"documentEventArgs_var" is a variable referencing a DocumentEventArgs object.
#include <Core/Application/DocumentEventArgs.h>

// Get the value of the property.
Ptr<Document> propertyValue = documentEventArgs_var->document();

Property Value

This is a read only property whose value is a Document.

Version

Introduced in version August 2014