需要了解的属性:
Count | property Count: Integer;
Use Count to determine the number of tree nodes in the tree view that owns the tree nodes object. Count provides an upper bound when iterating through the entries in the Item property array. |
Handle | property Handle: HWND;
Use Handle to obtain the handle of the tree view that owns the tree nodes object. |
Item | property Item[Index: Integer]: TTreeNode; default;
Use Item to access to a node by its position in the tree view. The first node has an index of 0, the second an index of 1, and so on. Item is the default property for TTreeNodes. This means that the name of the Item property can be omitted when indexing into the set of tree nodes. Thus, the line FirstNode := TreeView1.Items.Item[0]; can be written FirstNode := TreeView1.Items[0]; |
Owner | property Owner: TCustomTreeView;
Use the Owner property to access the tree view control that displays the nodes maintained by the TTreeNodes object. |