CommandControl.commandDefinition Property

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

Description

Gets the command definition associated with this button. The command definition defines all of the resource information used to display this button and receives the event when the button is clicked.

Syntax

"commandControl_var" is a variable referencing a CommandControl object.

# Get the value of the property.
propertyValue = commandControl_var.commandDefinition
"commandControl_var" is a variable referencing a CommandControl object.
#include <Core/UserInterface/CommandControl.h>

// Get the value of the property.
Ptr<CommandDefinition> propertyValue = commandControl_var->commandDefinition();

Property Value

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

Version

Introduced in version August 2014