# C1.Win.FlexGrid.Node

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_FlexGrid_Node" data-uid="C1.Win.FlexGrid.Node" class="text-break">Node Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.Win.FlexGrid.Node.html">Node</a> class encapsulates properties and methods used for manipulating node rows
(collapsing, expanding, moving, and sorting them).</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">Node</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.FlexGrid.html">C1.Win.FlexGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.FlexGrid.10.dll</h6>
  <h5 id="C1_Win_FlexGrid_Node_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Node</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class Node</code></pre>
  </div>
  <h5 id="C1_Win_FlexGrid_Node_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>You can create node rows using the <span class="xref">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)</span> method or by setting the
<a class="xref" href="C1.Win.FlexGrid.Row.IsNode.html#C1_Win_FlexGrid_Row_IsNode">IsNode</a> property to true.</p>
</div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Checked" data-uid="C1.Win.FlexGrid.Node.Checked">
          <a class="xref" href="C1.Win.FlexGrid.Node.Checked.html#C1_Win_FlexGrid_Node_Checked">Checked</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the checkbox value associated with this node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Children" data-uid="C1.Win.FlexGrid.Node.Children">
          <a class="xref" href="C1.Win.FlexGrid.Node.Children.html#C1_Win_FlexGrid_Node_Children">Children</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of child nodes under this node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Collapsed" data-uid="C1.Win.FlexGrid.Node.Collapsed">
          <a class="xref" href="C1.Win.FlexGrid.Node.Collapsed.html#C1_Win_FlexGrid_Node_Collapsed">Collapsed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether this node is collapsed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Data" data-uid="C1.Win.FlexGrid.Node.Data">
          <a class="xref" href="C1.Win.FlexGrid.Node.Data.html#C1_Win_FlexGrid_Node_Data">Data</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the data on this node row at the column that contains the outline tree.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Expanded" data-uid="C1.Win.FlexGrid.Node.Expanded">
          <a class="xref" href="C1.Win.FlexGrid.Node.Expanded.html#C1_Win_FlexGrid_Node_Expanded">Expanded</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether this node is expanded.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_FirstChild" data-uid="C1.Win.FlexGrid.Node.FirstChild">
          <a class="xref" href="C1.Win.FlexGrid.Node.FirstChild.html#C1_Win_FlexGrid_Node_FirstChild">FirstChild</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the first child node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_FirstSibling" data-uid="C1.Win.FlexGrid.Node.FirstSibling">
          <a class="xref" href="C1.Win.FlexGrid.Node.FirstSibling.html#C1_Win_FlexGrid_Node_FirstSibling">FirstSibling</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the first sibling node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_FirstVisibleChild" data-uid="C1.Win.FlexGrid.Node.FirstVisibleChild">
          <a class="xref" href="C1.Win.FlexGrid.Node.FirstVisibleChild.html#C1_Win_FlexGrid_Node_FirstVisibleChild">FirstVisibleChild</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the first visible child node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_HasVisibleChildren" data-uid="C1.Win.FlexGrid.Node.HasVisibleChildren">
          <a class="xref" href="C1.Win.FlexGrid.Node.HasVisibleChildren.html#C1_Win_FlexGrid_Node_HasVisibleChildren">HasVisibleChildren</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether any child of node is visible.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Image" data-uid="C1.Win.FlexGrid.Node.Image">
          <a class="xref" href="C1.Win.FlexGrid.Node.Image.html#C1_Win_FlexGrid_Node_Image">Image</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the image on this node row at the column that contains the outline tree.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Index" data-uid="C1.Win.FlexGrid.Node.Index">
          <a class="xref" href="C1.Win.FlexGrid.Node.Index.html#C1_Win_FlexGrid_Node_Index">Index</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of this node in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Key" data-uid="C1.Win.FlexGrid.Node.Key">
          <a class="xref" href="C1.Win.FlexGrid.Node.Key.html#C1_Win_FlexGrid_Node_Key">Key</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Win.FlexGrid.RowCol.UserData.html#C1_Win_FlexGrid_RowCol_UserData">UserData</a> associated with this node row.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_LastChild" data-uid="C1.Win.FlexGrid.Node.LastChild">
          <a class="xref" href="C1.Win.FlexGrid.Node.LastChild.html#C1_Win_FlexGrid_Node_LastChild">LastChild</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the last child node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_LastSibling" data-uid="C1.Win.FlexGrid.Node.LastSibling">
          <a class="xref" href="C1.Win.FlexGrid.Node.LastSibling.html#C1_Win_FlexGrid_Node_LastSibling">LastSibling</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the last sibling node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Level" data-uid="C1.Win.FlexGrid.Node.Level">
          <a class="xref" href="C1.Win.FlexGrid.Node.Level.html#C1_Win_FlexGrid_Node_Level">Level</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the outline level for this node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_NextNode" data-uid="C1.Win.FlexGrid.Node.NextNode">
          <a class="xref" href="C1.Win.FlexGrid.Node.NextNode.html#C1_Win_FlexGrid_Node_NextNode">NextNode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the next sibling node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_NextVisibleNode" data-uid="C1.Win.FlexGrid.Node.NextVisibleNode">
          <a class="xref" href="C1.Win.FlexGrid.Node.NextVisibleNode.html#C1_Win_FlexGrid_Node_NextVisibleNode">NextVisibleNode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the next visible sibling node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Nodes" data-uid="C1.Win.FlexGrid.Node.Nodes">
          <a class="xref" href="C1.Win.FlexGrid.Node.Nodes.html#C1_Win_FlexGrid_Node_Nodes">Nodes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an array containing the children of this node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Parent" data-uid="C1.Win.FlexGrid.Node.Parent">
          <a class="xref" href="C1.Win.FlexGrid.Node.Parent.html#C1_Win_FlexGrid_Node_Parent">Parent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the parent node of this node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_PrevNode" data-uid="C1.Win.FlexGrid.Node.PrevNode">
          <a class="xref" href="C1.Win.FlexGrid.Node.PrevNode.html#C1_Win_FlexGrid_Node_PrevNode">PrevNode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the previous sibling node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_PrevVisibleNode" data-uid="C1.Win.FlexGrid.Node.PrevVisibleNode">
          <a class="xref" href="C1.Win.FlexGrid.Node.PrevVisibleNode.html#C1_Win_FlexGrid_Node_PrevVisibleNode">PrevVisibleNode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the previous visible sibling node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Row" data-uid="C1.Win.FlexGrid.Node.Row">
          <a class="xref" href="C1.Win.FlexGrid.Node.Row.html#C1_Win_FlexGrid_Node_Row">Row</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a reference to the <a class="xref" href="C1.Win.FlexGrid.Node.Row.html#C1_Win_FlexGrid_Node_Row">Row</a> object that corresponds to this node.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_FlexGrid_Node_AddNode_C1_Win_FlexGrid_NodeTypeEnum_System_Object_System_Boolean_" data-uid="C1.Win.FlexGrid.Node.AddNode(C1.Win.FlexGrid.NodeTypeEnum,System.Object,System.Boolean)">
          <a class="xref" href="C1.Win.FlexGrid.Node.AddNode.html#C1_Win_FlexGrid_Node_AddNode_C1_Win_FlexGrid_NodeTypeEnum_System_Object_System_Boolean_">AddNode(NodeTypeEnum, object, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a node row at a specified position relative to this node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_AddNode_C1_Win_FlexGrid_NodeTypeEnum_System_Object_System_Object_System_Drawing_Image_System_Boolean_" data-uid="C1.Win.FlexGrid.Node.AddNode(C1.Win.FlexGrid.NodeTypeEnum,System.Object,System.Object,System.Drawing.Image,System.Boolean)">
          <a class="xref" href="C1.Win.FlexGrid.Node.AddNode.html#C1_Win_FlexGrid_Node_AddNode_C1_Win_FlexGrid_NodeTypeEnum_System_Object_System_Object_System_Drawing_Image_System_Boolean_">AddNode(NodeTypeEnum, object, object, Image, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a node row at a specified position relative to this node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_EnsureVisible" data-uid="C1.Win.FlexGrid.Node.EnsureVisible">
          <a class="xref" href="C1.Win.FlexGrid.Node.EnsureVisible.html#C1_Win_FlexGrid_Node_EnsureVisible">EnsureVisible()</a>
        </td>
        <td class="markdown level1 summary"><p>Ensures that this node is visible, expanding its parent nodes and scrolling it into view if necessary.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_GetCellRange" data-uid="C1.Win.FlexGrid.Node.GetCellRange">
          <a class="xref" href="C1.Win.FlexGrid.Node.GetCellRange.html#C1_Win_FlexGrid_Node_GetCellRange">GetCellRange()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a CellRange object containing this row and all its child rows.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_GetNode_C1_Win_FlexGrid_NodeTypeEnum_" data-uid="C1.Win.FlexGrid.Node.GetNode(C1.Win.FlexGrid.NodeTypeEnum)">
          <a class="xref" href="C1.Win.FlexGrid.Node.GetNode.html#C1_Win_FlexGrid_Node_GetNode_C1_Win_FlexGrid_NodeTypeEnum_">GetNode(NodeTypeEnum)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a reference to a node located at a given position relative to this node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Move_C1_Win_FlexGrid_NodeMoveEnum_" data-uid="C1.Win.FlexGrid.Node.Move(C1.Win.FlexGrid.NodeMoveEnum)">
          <a class="xref" href="C1.Win.FlexGrid.Node.Move.html#C1_Win_FlexGrid_Node_Move_C1_Win_FlexGrid_NodeMoveEnum_">Move(NodeMoveEnum)</a>
        </td>
        <td class="markdown level1 summary"><p>Moves a node to a new position.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Move_C1_Win_FlexGrid_NodeMoveEnum_C1_Win_FlexGrid_Node_" data-uid="C1.Win.FlexGrid.Node.Move(C1.Win.FlexGrid.NodeMoveEnum,C1.Win.FlexGrid.Node)">
          <a class="xref" href="C1.Win.FlexGrid.Node.Move.html#C1_Win_FlexGrid_Node_Move_C1_Win_FlexGrid_NodeMoveEnum_C1_Win_FlexGrid_Node_">Move(NodeMoveEnum, Node)</a>
        </td>
        <td class="markdown level1 summary"><p>Moves a node to a new position.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_RemoveNode" data-uid="C1.Win.FlexGrid.Node.RemoveNode">
          <a class="xref" href="C1.Win.FlexGrid.Node.RemoveNode.html#C1_Win_FlexGrid_Node_RemoveNode">RemoveNode()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes this node row and all its child rows (nodes and data) from the grid.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Select" data-uid="C1.Win.FlexGrid.Node.Select">
          <a class="xref" href="C1.Win.FlexGrid.Node.Select.html#C1_Win_FlexGrid_Node_Select">Select()</a>
        </td>
        <td class="markdown level1 summary"><p>Selects the node.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Sort_C1_Win_FlexGrid_SortFlags_" data-uid="C1.Win.FlexGrid.Node.Sort(C1.Win.FlexGrid.SortFlags)">
          <a class="xref" href="C1.Win.FlexGrid.Node.Sort.html#C1_Win_FlexGrid_Node_Sort_C1_Win_FlexGrid_SortFlags_">Sort(SortFlags)</a>
        </td>
        <td class="markdown level1 summary"><p>Sorts this node's child nodes in the specified order.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Sort_C1_Win_FlexGrid_SortFlags_System_Int32_System_Int32_" data-uid="C1.Win.FlexGrid.Node.Sort(C1.Win.FlexGrid.SortFlags,System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.FlexGrid.Node.Sort.html#C1_Win_FlexGrid_Node_Sort_C1_Win_FlexGrid_SortFlags_System_Int32_System_Int32_">Sort(SortFlags, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Sorts this node's child nodes in the specified order.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Node_Sort_System_Collections_IComparer_" data-uid="C1.Win.FlexGrid.Node.Sort(System.Collections.IComparer)">
          <a class="xref" href="C1.Win.FlexGrid.Node.Sort.html#C1_Win_FlexGrid_Node_Sort_System_Collections_IComparer_">Sort(IComparer)</a>
        </td>
        <td class="markdown level1 summary"><p>Sorts this node's child nodes using a given <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icomparer">IComparer</a> object to determine the node order.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
