TreeView REALbasic Plugin

TreeViewNode Class

TreeViewNode is a class that represents nodes in the TreeView.

Note:
You can inherit from the TreeViewNode and add your own data properties to it.

Warning:
A TreeViewNode can not be reused in any way. This means that a node may not be put in two different TreeView controls or twice in the same unless if the node has first been removed from the TreeView that it was in.

Object
   TreeViewNode

class TreeViewNode

Constructors

TreeViewNodeA constructor that takes a text.
TreeViewNodeA constructor that takes a text and a image.
TreeViewNodeA constructor that takes a text, image and true or false depending on if the node should have expander or not.

Properties

FontBoldSet this property to true to let the node text be drawn bold faced.
FontItalicSet this property to true to let the node text be drawn italic faced.
FontUnderlineSet this property to true to let the node text be drawn with text underline style.
HasExpanderUse this property to force a node to have a expander even if it has no child nodes.
ImageSets or gets the node image.
ItemDataA property to store custom data on the node.
TextSets or gets the text of a node.
TextColorSets the text color of a node.

Methods

AddSubItemAdds text to additional columns of the node.
AppendNodeAppends a child node to the current node.
DepthReturns the depth of the node in the tree.
ExpandedReturns true if the node is expanded.
IndexReturns the Screen Index of the node.
ItemTextSets or gets the text for a specific column.
NodeReturns a child node at a given index.
NodeCountReturns the count of child nodes.
RemoveChildRemoves a child node.
RemoveChildAtRemoves a child node at a index that is relative to the parent node.
SelectedReturns true if the node is currently selected.
SetExpandedExpands or collapses the node.
SwapSwaps child nodes of the given node instance.

Supported Platforms:

  • PPC - MacOS 9
  • Carbon - MacOS 9 and MacOS X (PEF)
  • MacOS X PPC - (Mach-O)
  • MacOS X Universal Binary (Mach-O)
  • Win32 - Windows
  • Linux x86