getItemWidth(index);
index. Number. Index.
The getItemWidth method returns title width by its index.
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: