WorkspaceEvent.add Method

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

Description

Add a handler to be notified when the event occurs.

Syntax

"workspaceEvent_var" is a variable referencing a WorkspaceEvent object.
returnValue = workspaceEvent_var.add(handler)
"workspaceEvent_var" is a variable referencing a WorkspaceEvent object.

#include <Core/UserInterface/WorkspaceEvent.h>

returnValue = workspaceEvent_var->add(handler);

Return Value

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

Parameters

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

Version

Introduced in version March 2015