A TreeViewItem is a system structure that populates the properties for individual items in a TreeView control. A TreeViewItem has no events.
TreeViewItem property |
Datatype |
Description |
---|---|---|
Bold |
Boolean |
Specifies whether the item is bold. Values are:
|
Children |
Boolean |
Specifies whether the item has children. Values are:
You can use this property to make the TreeView think it has children, even when it does not. You would want to do this in order to get ItemPopulate and ItemExpanding events when the item does not yet have any children. |
ClassDefinition |
PowerObject |
An object of type PowerObject containing information about the class definition of the object or control. |
CutHighLighted |
Boolean |
Specifies whether the item is the target of a cut operation. Values are:
|
Data |
Any |
Assigns any user-defined data to a TreeView item. |
DropHighLighted |
Boolean |
Specifies whether the item is the target of a DragDrop operation. Values are:
|
Expanded |
Boolean |
Specifies whether the item is expanded. Values are:
|
ExpandedOnce |
Boolean |
Specifies whether the item has been expanded at least once, also meaning the item has been populated with children. Values are:
|
HasFocus |
Boolean |
Specifies if the item has focus. Values are:
|
ItemHandle |
Long |
Identifies the handle associated with the item. |
Label |
Label |
Identifies the string label associated with the item. |
Level |
Integer |
Indicates the level of the item in the TreeView control. |
OverlayPictureIndex |
Integer |
Identifies the overlay picture associated with the item. The overlay picture is display on top of the item’s picture. If 0, no overlay is displayed. |
Integer |
Identifies the picture displayed to the left of the item label. If 0, no picture appears and the space specified by the TreeView’s PictureWidth property is blank. |
|
SelectedPictureIndex |
Integer |
Identifies the picture associated with the item when it is selected. If 0, no picture is displayed when selected. |
Selected |
Boolean |
Specifies whether the item is selected. Values are:
|
StatePictureIndex |
Integer |
Identifies the state picture associated with the item. The state picture appears to the left of the regular picture. If 0, no state picture appears and no space is reserved for the picture. |
TreeViewItem function |
Datatype returned |
Description |
---|---|---|
String |
Returns the name assigned to the object. |
|
Integer |
Creates a reference to a context-specific instance of the specified service. |
|
PowerObject |
Returns a reference to the name of the parent object. |
|
Object |
Returns the type of the object. |