Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Tree Item - Level Property

Panel
bgColor#2c3c4c

Level tells the level of tree view items

Member of Tree Item (PRIM_TREE.TreeItem)

Data Type - Integer

Details

The Level property returns the nesting level of an item.

Items at the root will have a Level of 1. This will increment by one for each level of nesting.

Level is typically used to determine what sort of data to add during an expansion event.

Example

In this example, the level of the expanding item is tested to determine what sort of data to add.

     Evtroutine Handling(#Tree.ItemExpanding) 
        Case (#Tree.CurrentItem.Level)
When (= 1)
#Com_owner.LoadSections
        When (= 2)
#Com_owner.LoadEmployees
        Endcase 
     Endroutine

See also

All Component Classes

Technical Reference