ButtonRowCommandInput.listItems Property

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

Description

Returns the ListItems object associated with this button row. You use this object to populate and interact with the buttons in the row. When adding items to a ButtonRowCommandInput, icons are required.

Syntax

"buttonRowCommandInput_var" is a variable referencing a ButtonRowCommandInput object.

# Get the value of the property.
propertyValue = buttonRowCommandInput_var.listItems
"buttonRowCommandInput_var" is a variable referencing a ButtonRowCommandInput object.
#include <Core/UserInterface/ButtonRowCommandInput.h>

// Get the value of the property.
Ptr<ListItems> propertyValue = buttonRowCommandInput_var->listItems();

Property Value

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

Samples

Name Description
Command Inputs API Sample

Creates a command dialog that demonstrates all of the available command inputs.

To use the sample, create a new Python or C++ script and copy and paste this code, replacing the default code. You also need to unpack this zip file which contains a resource folder into the same folder where the source code file (.py or .cpp) is.

Version

Introduced in version June 2015