A string expression that indicates the node's name ( caption ).
The Name property defines the node's caption. Use the Value
property to assign a value to a node. Use the Editor
property to assign an editor to a node. The control fires the Change
event when the user changes the node's value if the node has no child nodes,
or the node's name if the node has child nodes. Use the UserData
property to assign an extra data to a node. Use the Add
method to specify the node's name and value at adding time. If the node has an
editor assigned, and it contains child nodes, the Name property indicates the
value for the assigned editor. Use the BackColor property to specify the node's background
color. Use the BackColorChild
property to specify the background color for child nodes.
The Name property supports built-in HTML format like follows:
<b>bold </b> bolds a part of the
<u>underline </u> specifies that the portion
should appear as underlined.
<s>strikeout </s> specifies that the portion
should appear as strikeout.
<i>italic </i> specifies that the portion
should appear as italic.
<fgcolor=FF0000> fgcolor </fgcolor>
changes the foreground color for a portion.
</bgcolor> changes the background color for a portion.
<br> breaks a line.
<solidline> draws a solid line. If has no effect for a
single line caption.
<dotline> draws a dotted line. If has no effect for a
single line caption.
<upline> draws the line to the top of the text line
<r> aligns the rest of the text line to the right side. It
has no effect if the caption contains a single line.
<img>number[:width]</img> inserts an icon inside the
cell's caption. The number indicates the index of the icon being inserted.
The width is optional and indicates the width of the icon being inserted.
Using the width option you can overwrite multiple icons getting a nice
effect. By default, if the width field is missing, the width is 18 pixels.
<img>key[:width]</img> inserts a custom size picture
being loaded using the HTMLPicture
property. The Key parameter indicates the key of the picture being
displayed. The Width parameter indicates a custom size, if you require to
stretch the picture, else the original size of the picture is used.
<font face;size>text </font> displays portions of
text with a different font and/or different size. For instance, the
draws the bit text using the Tahoma font, on size 12 pt. If the name of
the font is missing, and instead size is present, the current font is used
with a different size. For instance, <font ;12>bit</font>
displays the bit text using the current font, but with a different size.
</a>, specifies hyperlinks in your text. An anchor is a piece of
text or some other object (for example an image) which marks the beginning
and/or the end of a hypertext link.The <A> element is used to mark
that piece of text (or inline image), and to give its hypertextual
relationship to other documents. The control fires the AnchorClick
event when the user clicks an anchor element. Use the FormatAnchor
property to specify the visual effect for anchor elements. For instance,
if the user clicks the anchor <a1>anchor</a>, the
control fires the AnchorClick event, where the AnchorID parameter is 1,
and the Options parameter is empty. Also, if the user clicks the anchor <a
1;yourextradata>anchor</a>, the AnchorID parameter of the
AnchorClick event is 1, and the Options parameter is "yourextradata".
Use the AnchorFromPoint property to
retrieve the identifier of the anchor element from the cursor. Use the ShowToolTip
method to display a custom tooltip.