ListCaptions.setHorizontalSizes

Syntax

setHorizontalSizes(values, preventUpdate);

Parameters

values. Object. Object with fields: Width, LeftMargin, RightMargin, VScrollMargin. It may contain only some fields.

preventUpdate. Boolean. Do not refresh titles.

Description

The setHorizontalSizes method sets size required for calculating title size.

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();
// Set left and right margins
caps.setHorizontalSizes({
    LeftMargin: 20,
    RightMargin: 20
});

After executing the example both title margins are set.

See also:

ListCaptions