ListCaption.Percent

Syntax

Percent: Number;

Description

The Percent property determines width in percents.

Comments

The property value is returned by the getPercent method.

To set width in percents, use the ListCaption.setWidth() method containing value with percents, for example, "30%".

Example

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

// Get title
caps = Tree.getCaptions();
cap = caps.getCaptions()[0];
// Set width in percents
cap.setWidth("30%");
// Get the current width in percents
cap.getPercent();

After executing the example title width in percents is obtained.

See also:

ListCaption