Versions Compared

Key

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

Tree Item - Position Property

Panel
bgColor#2c3c4c

Position of the item in the component list

Member of Tree Item (PRIM_TREE.TreeItem)

Data Type - Integer

Details

The Position property returns the physical location of the item in the visual list.

The top item in the list will have a position of 1.

Unlike Entry which changes rarely, Position changes whenever the list is sorted or manipulated in any way. If the last item in the list is moved to the top, the Position of every item in the list would change.

Example

Using position to organize list items. In this example, a newly added entry is moved to the top of the list.

     Add_Entry To_list(#List)
#List.CurrentItem.Position := 1


See also

All Component Classes

Technical echnical Reference