NGTree |
public class NGTreeNode : SelectableListNode, ITreeListNodeWithParent<NGTreeNode>, ITreeListNode<NGTreeNode>, ITreeNode<NGTreeNode>, INodeWithParentNode<NGTreeNode>
The NGTreeNode type exposes the following members.
Name | Description | |
---|---|---|
NGTreeNode | Empty constructor. | |
NGTreeNode(Boolean) | Initializes a new instance of the NGTreeNode class | |
NGTreeNode(String) | Constructor that initializes the text of the tree node. | |
NGTreeNode(String, NGTreeNode) | Constructor that initializes the text of the tree node and adds a range of elements to it. |
Name | Description | |
---|---|---|
AlwaysFalse | ||
Description |
Gets the description string. Can be used e.g. to show a tool tip.
(Inherited from ListNode) | |
FirstSelectedNode | ||
GuiTag | Can be used by some GUI to get a connection to GUI elements. | |
HasChilds | Tests for childs without creating a child collection. | |
HasDummyChild | Returns true if this object's Children have not yet been populated. | |
HierarchyIndices | Returns the hierarchy of indices, i.e. the indices beginning with the root node collection and ending with the index in the nodes parent collection. | |
Image |
Gets an image to display for the item. The type depends on the Gui that is currently used.
(Inherited from ListNode) | |
ImageIndex |
Returns an image index, or -1 if no image is set. The default implementation here returns -1, but this behaviour can be overriden in a derived class.
(Overrides ListNodeImageIndex) | |
Index | Return the index in the parent's node collection or -1 if there is no parent. | |
IsExpanded | Gets/sets whether the TreeViewItem associated with this object is expanded. | |
IsSelected |
Gets or sets a value indicating whether this item is selected.
(Inherited from SelectableListNode) | |
Level | The level in the hierarchy. Nodes that have no parent return a level of 0, those with a parent return a level of 1, those with parent and grand parent a level of 2 and so on. | |
Nodes | Collection of the child nodes of this node. | |
ParentNode | Parent tree node. | |
RootNode | Return the root node belonging to this node. If the node has no parent, the node itself is returned. | |
SelectedImageIndex | Returns an image index (for the selected node), or -1 if no image is set. The default implementation here returns -1, but this can be overriden in a derived class. Note that when using SelectedImageIndex, you probably also need to override [M:OnPropertyChanged], so that when the [P:IsSelected] property changed, you must also call [M:OnPropertyChanged] with "ImageIndex" as argument. | |
SubItemCount |
Gets the number of subitems to display (Text0, Text1, etc.).
(Inherited from ListNode) | |
Tag |
Gets or sets a tag associated with the item.
(Inherited from ListNode) | |
Text |
Gets or sets the text that is displayed (for simple Gui items).
(Inherited from ListNode) | |
Text0 |
Gets additional text to display for the item.
(Inherited from ListNode) | |
Text1 |
Gets additional text to display for the item.
(Inherited from ListNode) | |
Text2 |
Gets additional text to display for the item.
(Inherited from ListNode) | |
Text3 |
Gets additional text to display for the item.
(Inherited from ListNode) | |
Text4 |
Gets additional text to display for the item.
(Inherited from ListNode) | |
Text5 |
Gets additional text to display for the item.
(Inherited from ListNode) | |
Text6 |
Gets additional text to display for the item.
(Inherited from ListNode) | |
Text7 |
Gets additional text to display for the item.
(Inherited from ListNode) | |
Text8 |
Gets additional text to display for the item.
(Inherited from ListNode) | |
Text9 |
Gets additional text to display for the item.
(Inherited from ListNode) |
Name | Description | |
---|---|---|
AreAllNodesFromSameLevel | Determines whether all nodes in the provided enumeration have the same level. This not neccessarily means that the nodes have to have the same parent; only the level must be the same. To test for the same parent, use the HaveSameParent(IEnumerableNGTreeNode) function. | |
ClearSelectionRecursively | ||
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
FilterIndependentNodes | If the nodes array contain both some nodes and their childs (or relatives up in the hierarchy), those childs are removed and only the nodes with the lowest level in the hierarchy are returned. | |
FilterLowestLevelNodes | Returns only the nodes with the lowest hierarchy level. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
FindFirstSelectedNodeParent | Finds the first parent node in the hierarchy, which is selected. | |
GetHashCode | Serves as the default hash function. (Inherited from Object) | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
HaveSameParent | Determines if all nodes in the array have the same parent. | |
LoadChildren | Invoked when the child items need to be loaded on demand. Subclasses can override this to populate the Children collection. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
MoveUpDown | This procedure will move up or move down some nodes in the tree. | |
NodesWithoutSelectedChilds | Returns only those nodes of the provided list, which have no child nodes (immediate childs or higher level child nodes), that are not selected. | |
OnPropertyChanged |
Called when a property has changed.
(Inherited from ListNode) | |
Remove | Frees this node, i.e. removes the node from it's parent collection (and set the parent node to null. | |
ReplaceBy | Replaces this node in the tree by the new node newNode, setting this node free (i.e. afterwards it has no parent anymore). | |
SortByOrder | The nodes in the array are sorted by order, i.e. by there hierarchy indices. | |
SubItemBackColor |
Gets the color of the sub items.
(Inherited from ListNode) | |
SubItemText |
Get the sub item text at index i.
Implementer should be aware of, that when changing a subitem text, the corresponding property (e.g. Text0) is changed. Thus, OnPropertyChanged(String) must be called for all properties that have changed.
(Inherited from ListNode) | |
ToString |
Converts to string.
(Inherited from ListNode) |
Name | Description | |
---|---|---|
PropertyChanged |
Occurs when a property value changes.
(Inherited from ListNode) |
Name | Description | |
---|---|---|
_guiTag | ||
_isExpanded | ||
_isSelected |
Indicating whether this item is selected
(Inherited from SelectableListNode) | |
_tag | (Inherited from ListNode) | |
_text | (Inherited from ListNode) |