|
XMLTree/X
-
Version
1.00.006
The XMLTree/X control combines a List control with a
Tree control. You can use the XMLTree/X control as an
advanced List control, or as an advanced Tree control,
or a combination of both at the same time. The control
allows displaying a hierarchy with root nodes, and,
you can use columns in the same time.
The control provides both a Columns and an Items
collection. The Columns collection allows the user to
add, remove or access any XMLTree/X column. The Items
collection enables the user to insert, remove or
access items in the XMLTree/X hierarchy. No matter
what format you choose to display data using
XMLTree/X, you also have access to a number of
collections, properties, and methods that control the
way individual cells are formatted.
The XMLTree/X control provides LoadXML and SaveXML
methods, plus an XML property. The control uses two
methods to display the XML contents. The XMLNodeName
Property determines how the nodes of the XML Source
are loaded. The first mode of loading nodes is used
when the XMLNodeName property is empty. This mode
displays the XML node using more than one item. In
that case, the Load method will add exactly two
columns: "Nodes" and "Values". The "Nodes" column
contains the name of the nodes, and the "Values"
column contains the value of the nodes. The second
mode of loading nodes is used when the XMLNodeName
Property is not empty. This mode displays the XML node
using only one item. In that case the Load method
looks for the XMLNodeName node in the child nodes of
the root node. When the node is found, the Load method
looks for all its descendents, and for each descendent
node found it adds a new column to the XMLTreeXColumns
collection. When a node of XMLNodeName name is found
as a child of another node of the XMLNodeName name, a
new item is added.
Each cell in XMLTree/X may contain a caption, radio
button or check box, and image, or a button. The
cell's font attributes, background, and foreground
colors can be controlled as well.
|