getTreeNodeType Method
Retrieves an object representing the given TreeNodeType.
Syntax
oTreeNodeType = TREEVIEW.getTreeNodeType(vKey)
Parameters
vKey | Required. VariantTreeNodeType. If this parameter is an Integer, it is the zero-based index of the object. If it is a String, it is the name of the TYPE attribute of the TreeNodeType. |
Return Value
Returns the TreeNodeType object.
Remarks
If vKey is an invalid Integer or String, this method returns null.
Examples
This example calls the getTreeNodeType method and passes an integer as the index value. It assumes that the treeview has an id value of treeview_one
.
var tempNodeType = treeview_one.getTreeNodeType(0);
This example calls the getTreeNodeType method and passes a string as the TYPE value. It assumes that a TreeNodeType element exists with a TYPE attribute equal to "folder".
var tempNodeType = treeview_one.getTreeNodeType("folder");
Applies To
TREEVIEW |
See Also