# C1.Framework.GridPanel

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_GridPanel" data-uid="C1.Framework.GridPanel" class="text-break">GridPanel Class
</h1>
  <div class="markdown level0 summary"><p>Inherits from BasePanel and provides a grid with rows and columns.
At each intersection there is a cell object that contains an element.
Cells may span rows and columns.</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"><a class="xref" href="C1.Framework.Element.html">Element</a></div>
    <div class="level2"><a class="xref" href="C1.Framework.BasePanel.html">BasePanel</a></div>
    <div class="level3"><span class="xref">GridPanel</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Win.Accessibility.ISupportUia.html">ISupportUia</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.html">C1.Framework</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Framework_GridPanel_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class GridPanel : BasePanel, ISupportUia</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class GridPanel
    Inherits BasePanel
    Implements ISupportUia</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_GridPanel__ctor" data-uid="C1.Framework.GridPanel.#ctor">
          <a class="xref" href="C1.Framework.GridPanel.-ctor.html#C1_Framework_GridPanel__ctor">GridPanel()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.GridPanel.html">GridPanel</a> element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_GridPanel__ctor_C1_Framework_Style_" data-uid="C1.Framework.GridPanel.#ctor(C1.Framework.Style)">
          <a class="xref" href="C1.Framework.GridPanel.-ctor.html#C1_Framework_GridPanel__ctor_C1_Framework_Style_">GridPanel(Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.GridPanel.html">GridPanel</a> element with the specified style.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_GridPanel__ctor_C1_Framework_Style_System_Int32_System_Int32_" data-uid="C1.Framework.GridPanel.#ctor(C1.Framework.Style,System.Int32,System.Int32)">
          <a class="xref" href="C1.Framework.GridPanel.-ctor.html#C1_Framework_GridPanel__ctor_C1_Framework_Style_System_Int32_System_Int32_">GridPanel(Style, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.GridPanel.html">GridPanel</a> element with the specified number of rows and columns and style settings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_GridPanel__ctor_System_Int32_System_Int32_" data-uid="C1.Framework.GridPanel.#ctor(System.Int32,System.Int32)">
          <a class="xref" href="C1.Framework.GridPanel.-ctor.html#C1_Framework_GridPanel__ctor_System_Int32_System_Int32_">GridPanel(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.GridPanel.html">GridPanel</a> element with the specified number of rows and columns.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_GridPanel__cellSpacing" data-uid="C1.Framework.GridPanel._cellSpacing">
          <a class="xref" href="C1.Framework.GridPanel._cellSpacing.html">_cellSpacing</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_GridPanel__cols" data-uid="C1.Framework.GridPanel._cols">
          <a class="xref" href="C1.Framework.GridPanel._cols.html">_cols</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_GridPanel__hasSpans" data-uid="C1.Framework.GridPanel._hasSpans">
          <a class="xref" href="C1.Framework.GridPanel._hasSpans.html">_hasSpans</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_GridPanel__maxRowSpan" data-uid="C1.Framework.GridPanel._maxRowSpan">
          <a class="xref" href="C1.Framework.GridPanel._maxRowSpan.html">_maxRowSpan</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_GridPanel__rows" data-uid="C1.Framework.GridPanel._rows">
          <a class="xref" href="C1.Framework.GridPanel._rows.html">_rows</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_GridPanel__uniformColumns" data-uid="C1.Framework.GridPanel._uniformColumns">
          <a class="xref" href="C1.Framework.GridPanel._uniformColumns.html">_uniformColumns</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_GridPanel__uniformRows" data-uid="C1.Framework.GridPanel._uniformRows">
          <a class="xref" href="C1.Framework.GridPanel._uniformRows.html">_uniformRows</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <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_Framework_GridPanel_CellSpacing" data-uid="C1.Framework.GridPanel.CellSpacing">
          <a class="xref" href="C1.Framework.GridPanel.CellSpacing.html#C1_Framework_GridPanel_CellSpacing">CellSpacing</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value, specifying size in pixels of empty space between adjucent grid cells.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_GridPanel_Columns" data-uid="C1.Framework.GridPanel.Columns">
          <a class="xref" href="C1.Framework.GridPanel.Columns.html#C1_Framework_GridPanel_Columns">Columns</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the <a class="xref" href="C1.Framework.GridColumnCollection.html">GridColumnCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_GridPanel_Item_System_Int32_System_Int32_" data-uid="C1.Framework.GridPanel.Item(System.Int32,System.Int32)">
          <a class="xref" href="C1.Framework.GridPanel.Item.html#C1_Framework_GridPanel_Item_System_Int32_System_Int32_">this[int, int]</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the <a class="xref" href="C1.Framework.GridCell.html">GridCell</a> object displayed in the specified row and column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_GridPanel_Rows" data-uid="C1.Framework.GridPanel.Rows">
          <a class="xref" href="C1.Framework.GridPanel.Rows.html#C1_Framework_GridPanel_Rows">Rows</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the <a class="xref" href="C1.Framework.GridRowCollection.html">GridRowCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_GridPanel_UniformColumnWidths" data-uid="C1.Framework.GridPanel.UniformColumnWidths">
          <a class="xref" href="C1.Framework.GridPanel.UniformColumnWidths.html#C1_Framework_GridPanel_UniformColumnWidths">UniformColumnWidths</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value determining whether all columns should have the same width.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_GridPanel_UniformRowHeights" data-uid="C1.Framework.GridPanel.UniformRowHeights">
          <a class="xref" href="C1.Framework.GridPanel.UniformRowHeights.html#C1_Framework_GridPanel_UniformRowHeights">UniformRowHeights</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value determining whether all rows should have the same height.</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_Framework_GridPanel_Clone" data-uid="C1.Framework.GridPanel.Clone">
          <a class="xref" href="C1.Framework.GridPanel.Clone.html#C1_Framework_GridPanel_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a clone of this element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_GridPanel_Layout_System_Drawing_Graphics_" data-uid="C1.Framework.GridPanel.Layout(System.Drawing.Graphics)">
          <a class="xref" href="C1.Framework.GridPanel.Layout.html#C1_Framework_GridPanel_Layout_System_Drawing_Graphics_">Layout(Graphics)</a>
        </td>
        <td class="markdown level1 summary"><p>Layout this element based on its style and contents.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_GridPanel_Render_System_Drawing_Graphics_System_Drawing_Rectangle_" data-uid="C1.Framework.GridPanel.Render(System.Drawing.Graphics,System.Drawing.Rectangle)">
          <a class="xref" href="C1.Framework.GridPanel.Render.html#C1_Framework_GridPanel_Render_System_Drawing_Graphics_System_Drawing_Rectangle_">Render(Graphics, Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Renders the element into a given rectangle.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
