Event.sender Property

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

Description

The object that is firing the event. For example, in the case of a command input event this will return the command.

Syntax

"event_var" is a variable referencing an Event object.

# Get the value of the property.
propertyValue = event_var.sender
"event_var" is a variable referencing an Event object.
#include <Core/Application/Event.h>

// Get the value of the property.
Ptr<Base> propertyValue = event_var->sender();

Property Value

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

Version

Introduced in version August 2014