Palettes.item Method

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

Description

Returns the specified palette using an index into the collection.

Syntax

"palettes_var" is a variable referencing a Palettes object.
returnValue = palettes_var.item(index)
"palettes_var" is a variable referencing a Palettes object.

#include <Core/UserInterface/Palettes.h>

returnValue = palettes_var->item(index);

Return Value

Type Description
Palette Returns the specified item or null if an invalid index was specified.

Parameters

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

Version

Introduced in version March 2017