CommandDefinitions.item Method

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

Description

Returns the CommandDefinition at the specified index.

Syntax

"commandDefinitions_var" is a variable referencing a CommandDefinitions object.
returnValue = commandDefinitions_var.item(index)
"commandDefinitions_var" is a variable referencing a CommandDefinitions object.

#include <Core/UserInterface/CommandDefinitions.h>

returnValue = commandDefinitions_var->item(index);

Return Value

Type Description
CommandDefinition Returns the CommandDefinition at the specified index or null if an invalid index is specified.

Parameters

Name Type Description
index uinteger The index of the command definition within the collection to return. The first item in the collection has in index of 0.

Version

Introduced in version August 2014