|
|
|
NOTE: This Design document is subject to change at any time. |
Node
Syntax: <NODE property-list>child nodes</NODE>
This object represents a single node within a zTree control. Nodes can be nested to create a hierarchical relationship. The NODE tag can be used within a TREE tag to create the tree data at design time. Otherwise many of the properties and methods of the Tree object return zNode values or accept zNode values.
The Caption property is the text string of the first column for the node. To set or retrieve the text of all columns, use the Text property. The Data property sets or returns the object assigned to this node. Any object can be assigned to a node. If a string is assigned to the node, then this string becomes the Caption of the node. If a COM object is assigned to the node, then the tree uses the CaptionProp to determine the name of the property to use for the caption. zCollection objects can also be assigned to a node, in which case the tree uses its CountProp and ChildProp properties to determine the number of nodes in the collection and to retrieve the child nodes. |
|