JVCL Help:TJvPageListTreeView.Items

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Lists the individual nodes that appear in the tree view control.


Pascal

 propertyItems: TJvPageIndexNodes;


Description

Individual nodes in this tree view are TJvPageIndexNode objects but they are surfaced as standard TTreeNode objects. To access the additional properties and methods of the TJvPageIndexNode class, you must type cast the node to a TJvPageIndexNode. The individual nodes can be accessed by using the Items property along with the item's index into the tree view. For example, to access the second item in the tree view, you could use the following code.
(Delphi)

   MyTreeNode := TreeView1.Items[1];
 (C++Builder)
   MyTreeNode = TreeView1->Items[1]; 

When setting this property at design-time in the Object Inspector the Tree View Items Editor appears. Use the New Item and New SubItem buttons to add items to the tree view. Use the Text property to modify what text is displayed in the label of the item.
At run-time nodes can be added and inserted by using the TTreeNodes methods AddChildFirst, AddChild, AddChildObjectFirst, AddChildObject, AddFirst, Add, AddObjectFirst, AddObject, and Insert.


See Also

, , , , , , , ,


About

Notes

Accessing tree view items by index can be time-intensive, particularly when the tree view contains many items. For optimal performance, try to design your application so that it has as few dependencies on the tree view’s item index as possible.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page