# GrapeCity.Documents.Drawing.TableRenderer.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Drawing_TableRenderer__ctor_" data-uid="GrapeCity.Documents.Drawing.TableRenderer.#ctor*">TableRenderer Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Drawing_TableRenderer__ctor_" data-uid="GrapeCity.Documents.Drawing.TableRenderer.#ctor*"></a>
<h4 id="GrapeCity_Documents_Drawing_TableRenderer__ctor_GrapeCity_Documents_Drawing_GcGraphics_GrapeCity_Documents_Layout_LayoutRect_GrapeCity_Documents_Drawing_FixedTableSides_System_Int32_System_Int32_System_Drawing_Color_System_Single_System_Nullable_System_Single__System_Nullable_System_Single__System_Nullable_System_Single__System_Single_System_Single_System_Single_System_Single_" data-uid="GrapeCity.Documents.Drawing.TableRenderer.#ctor(GrapeCity.Documents.Drawing.GcGraphics,GrapeCity.Documents.Layout.LayoutRect,GrapeCity.Documents.Drawing.FixedTableSides,System.Int32,System.Int32,System.Drawing.Color,System.Single,System.Nullable{System.Single},System.Nullable{System.Single},System.Nullable{System.Single},System.Single,System.Single,System.Single,System.Single)">TableRenderer(GcGraphics, LayoutRect, FixedTableSides, int, int, Color, float, float?, float?, float?, float, float, float, float)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Drawing.TableRenderer.html">TableRenderer</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TableRenderer(GcGraphics graphics, LayoutRect tableRect, FixedTableSides fixedSides, int rowCount, int columnCount, Color gridLineColor, float gridLineWidth, float? rowMinHeight = null, float? columnMinWidth = null, float? paddingAll = null, float paddingLeft = 0, float paddingTop = 0, float paddingRight = 0, float paddingBottom = 0)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(graphics As GcGraphics, tableRect As LayoutRect, fixedSides As FixedTableSides, rowCount As Integer, columnCount As Integer, gridLineColor As Color, gridLineWidth As Single, Optional rowMinHeight As Single? = Nothing, Optional columnMinWidth As Single? = Nothing, Optional paddingAll As Single? = Nothing, Optional paddingLeft As Single = 0, Optional paddingTop As Single = 0, Optional paddingRight As Single = 0, Optional paddingBottom As Single = 0)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Drawing.GcGraphics.html">GcGraphics</a></td>
      <td><span class="parametername">graphics</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Documents.Drawing.GcGraphics.html">GcGraphics</a> used for creating <a class="xref" href="GrapeCity.Documents.Text.TextLayout.html">TextLayout</a> objects.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a></td>
      <td><span class="parametername">tableRect</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a> of the table.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Drawing.FixedTableSides.html">FixedTableSides</a></td>
      <td><span class="parametername">fixedSides</span></td>
      <td><p>Specifies which sides of a table are fixed, i.e. don't move depending on the table content.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>The overall number of rows in the table.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>The overall number of columns in the table.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">gridLineColor</span></td>
      <td><p>The color of grid lines.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">gridLineWidth</span></td>
      <td><p>The default grid line width, in graphic units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a>?</td>
      <td><span class="parametername">rowMinHeight</span></td>
      <td><p>The optional minimal height for each row, in graphic units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a>?</td>
      <td><span class="parametername">columnMinWidth</span></td>
      <td><p>The optional minimal width for each column, in graphic units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a>?</td>
      <td><span class="parametername">paddingAll</span></td>
      <td><p>All sides padding relative to the table rectangle, in graphic units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">paddingLeft</span></td>
      <td><p>Left side padding relative to the table rectangle, in graphic units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">paddingTop</span></td>
      <td><p>Top side padding relative to the table rectangle, in graphic units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">paddingRight</span></td>
      <td><p>Right side padding relative to the table rectangle, in graphic units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">paddingBottom</span></td>
      <td><p>Bottom side padding relative to the table rectangle, in graphic units.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
