ListCaptions.getItemWidth

Syntax

getItemWidth(index);

Parameters

index. Number. Index.

Description

The getItemWidth method returns title width by its index.

Example

Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).

// Get tree titles
caps = Tree.getCaptions();
// Get first title width
caps.getItemWidth(0);

After executing the example first title width is obtained.

See also:

ListCaptions