You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

&<img src="../resources/images/opentocr.png" title="Open Contents list" border="0"&>
You are here:

Run-time Properties of Tree Items

In a tree view, the items can have additional properties: Bold, HasChildren, Level and Expanded.

  • The Bold property makes the font of the caption of the item in bold. It can be set to True or False
  • The HasChildren property indicates whether the item contains child items. Its value can be Yes, No or Unknown.
  • The Level property is read-only. It indicates on what level of the tree view the focus item is. Its value is a number. See the help for the ItemExpanding event to see an example of how to use this property.
  • The Expanded property is used check and to control whether a tree view item which has children (called a node) is expanded or collapsed. It can have a value of True or False.

This command makes the caption of the current item bold:
set com(#trvw_1.CurrentItem) Bold(True)
&<img src="../resources/images/opentoc-dark.png" title="Open Contents List" border="0"&>

  • No labels