DocumentEvent.add Method

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

Description

Add a handler to be notified when the file event occurs.

Syntax

"documentEvent_var" is a variable referencing a DocumentEvent object.
returnValue = documentEvent_var.add(handler)
"documentEvent_var" is a variable referencing a DocumentEvent object.

#include <Core/Application/DocumentEvent.h>

returnValue = documentEvent_var->add(handler);

Return Value

Type Description
boolean Returns true if the addition of the handler was successful.

Parameters

Name Type Description
handler DocumentEventHandler The handler object to be called when this event is fired.

Version

Introduced in version August 2014