RasterTreeItem.add( icon, text [, value] )
Adds an item to the tree or item branch.
Parameters
Name |
Type |
|
Description |
icon |
string |
|
String containing path of a 16x16 image file
or an object that implements the IID_SPRITEINFO interface such as
the constants in the ICONS16 object. Set to
null if no icons is desired. |
text |
string |
|
Text shown in the item |
value |
any |
optional |
Placeholder for an user-defined value to be
associated with this item. User can access this value
later in the Tree event handler. Also the method
RasterTree.getItemByValue() can be used to retrieve
this item based on the user-defined value. |
Returns
Type |
Description |
object |
A reference to the RasterTreeItem object just added. |
See Also