TreeView Xojo 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.
TreeViewNodeA constructor that takes text, image and high resolution image for Retina mode.
TreeViewNodeA constructor that takes text, image, high resolution image for Retina mode and 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.
HighResImageHigh resolution image for Retina mode on Retina displays running on Cocoa
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.
IndexOfFinds a index of a child node relative to the parent.
InsertNodeInserts a child node at a given index to the current 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:

  • MacOS X Carbon
  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM