[]
The Node class encapsulates properties and methods used for manipulating node rows (collapsing, expanding, moving, and sorting them).
public class Node
Public Class Node
You can create node rows using the C1.Win.FlexGrid.C1FlexGridBase.Subtotal(C1.Win.FlexGrid.AggregateEnum,System.Int32,System.Int32,System.Int32,System.Int32,System.String,C1.Win.FlexGrid.AggregateFlags,C1.Win.FlexGrid.RowColFlags) method or by setting the IsNode property to true.
| Name | Description |
|---|---|
| Checked | Gets or sets the checkbox value associated with this node. |
| Children | Gets the number of child nodes under this node. |
| Collapsed | Gets or sets whether this node is collapsed. |
| Data | Gets or sets the data on this node row at the column that contains the outline tree. |
| Expanded | Gets or sets whether this node is expanded. |
| FirstChild | Gets the first child node. |
| FirstSibling | Gets the first sibling node. |
| FirstVisibleChild | Gets the first visible child node. |
| HasVisibleChildren | Gets whether any child of node is visible. |
| Image | Gets or sets the image on this node row at the column that contains the outline tree. |
| Index | Gets the index of this node in the collection. |
| Key | Gets or sets the UserData associated with this node row. |
| LastChild | Gets the last child node. |
| LastSibling | Gets the last sibling node. |
| Level | Gets or sets the outline level for this node. |
| NextNode | Gets the next sibling node. |
| NextVisibleNode | Gets the next visible sibling node. |
| Nodes | Gets an array containing the children of this node. |
| Parent | Gets the parent node of this node. |
| PrevNode | Gets the previous sibling node. |
| PrevVisibleNode | Gets the previous visible sibling node. |
| Row | Returns a reference to the Row object that corresponds to this node. |
| Name | Description |
|---|---|
| AddNode(NodeTypeEnum, object, bool) | Creates a node row at a specified position relative to this node. |
| AddNode(NodeTypeEnum, object, object, Image, bool) | Creates a node row at a specified position relative to this node. |
| EnsureVisible() | Ensures that this node is visible, expanding its parent nodes and scrolling it into view if necessary. |
| GetCellRange() | Returns a CellRange object containing this row and all its child rows. |
| GetNode(NodeTypeEnum) | Returns a reference to a node located at a given position relative to this node. |
| Move(NodeMoveEnum) | Moves a node to a new position. |
| Move(NodeMoveEnum, Node) | Moves a node to a new position. |
| RemoveNode() | Removes this node row and all its child rows (nodes and data) from the grid. |
| Select() | Selects the node. |
| Sort(SortFlags) | Sorts this node's child nodes in the specified order. |
| Sort(SortFlags, int, int) | Sorts this node's child nodes in the specified order. |
| Sort(IComparer) | Sorts this node's child nodes using a given IComparer object to determine the node order. |