Accessors for class IlvTreeGadget

Properties

Methods

Description

An IlvTreeGadget is a gadget that displays a hierarchical list of items. Each item is an instance of the IlvTreeGadgetItem class. Each tree gadget item displays a label and an optional bitmap, and has a list of sub-items. The user can expand or shrink the item in order to show or hide the sub-items.

TypeNameDescriptionNotes
IlvTreeGadgetItemaddItem(IlvTreeGadgetItem parent, String label, Int index, Bitmap bitmap, Bitmap selectionBitmap)Adds a sub-item to the parent item. bitmap and selectionBitmap are the bitmaps of the new item. If the new item has sub-items and if it is expanded, then selectionBitmap is displayed, otherwise bitmap is displayed. index indicates the required position for the new item in the list of child items. If index is -1 then the item is added to the end of the list.
ObjectcallbackItemReturns the item that is affected by the callback. This property should be used only in the callback.
VoiddeSelectAll()Deselects all the selected items.
BooleandragdropSpecifies whether drag-and-drop operations are allowed (true) or not (false).
BooleaneditableGets or sets the tree gadget's edit status.
VoidexpandItem(IlvTreeGadgetItem item)Expands the item to show the child items.
ObjectfirstSelectedItemReturns the first selected item in the tree if there is one, otherwise it returns NULL.
ObjectfirstVisibleReturns the first visible item of the tree.
ObjectgetItemByNameReturns the tree item whose name is given as argument.
BooleanhasToolTipsSpecifies whether the tree gadget handles tooltips (true).
UIntindentationGets or sets the amount of pixels that child items are indented from their parent. If indentation is less than the minimum, indentation is set to the minimum.
UIntitemsCountReturns the number of items in the tree.
DirectionlabelPositionSets or returns the default position of the tree item labels relative to their picture.
CallbackBooleanSets or removes the lines that are drawn to link the root item and its children.
Returns true if lines are drawn to link the root item and its children.
BooleanlinkedRootsLinks or unlinks the children of the root.
Returns true if the children of the root item are linked together.
VoidremoveAllItems()Removes all the items in the tree. Note that the root item is never deleted.
VoidremoveItem(IlvTreeGadgetItem item)Removes item from the tree. The item and all its children are removed and deleted.
IlvTreeGadgetItemrootReturns the root item of the tree.
VoidselectItem(IlvTreeGadgetItem item, Boolean set, Boolean deselectAll)Selects or deselects the item item. If set is true the item will be selected, otherwise the item will be deselected. If set is true and deselectAll is true then other selected items will be deselected.
BooleanselectionModeSets or returns the selection mode of the tree.
VoidshrinkItem(IlvTreeGadgetItem item)Shrinks the item so that children are no longer visible.
BooleanshowLabelSpecifies whether the labels associated with the tree items are displayed (true) or not (false).
BooleanshowPictureSpecifies whether the pictures associated with the tree items are displayed (true) or not (false).
BooleanvisibleButtonsShows or hides the buttons to the left of each item. Returns true if the buttons to the left of each item are visible.
BooleanvisibleLinesShows or hides the lines that link items to their parents.
Returns true if lines are drawn to link the items and their parents.