SelectionEventArgs.selection Property

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

Description

Gets the entity that is valid for selection.

Syntax

"selectionEventArgs_var" is a variable referencing a SelectionEventArgs object.

# Get the value of the property.
propertyValue = selectionEventArgs_var.selection
"selectionEventArgs_var" is a variable referencing a SelectionEventArgs object.
#include <Core/UserInterface/SelectionEventArgs.h>

// Get the value of the property.
Ptr<Selection> propertyValue = selectionEventArgs_var->selection();

Property Value

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

Samples

Name Description
Selection Events API Sample The sample demos how to use selection events of a command.

Version

Introduced in version August 2014