# FarPoint.Win.Spread.SheetTab.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_SheetTab__ctor_" data-uid="FarPoint.Win.Spread.SheetTab.#ctor*">SheetTab Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_SheetTab__ctor_" data-uid="FarPoint.Win.Spread.SheetTab.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_SheetTab__ctor" data-uid="FarPoint.Win.Spread.SheetTab.#ctor">SheetTab()</h4>
<div class="markdown level1 summary"><p>Creates a new sheet name tab.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SheetTab()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="FarPoint_Win_Spread_SheetTab__ctor_" data-uid="FarPoint.Win.Spread.SheetTab.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_SheetTab__ctor_System_Windows_Forms_Control_" data-uid="FarPoint.Win.Spread.SheetTab.#ctor(System.Windows.Forms.Control)">SheetTab(Control)</h4>
<div class="markdown level1 summary"><p>Creates a new sheet name tab for the specified control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SheetTab(Control owner)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(owner As Control)</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="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></td>
      <td><span class="parametername">owner</span></td>
      <td><p>Control that owns the new sheet tab (SheetTab object)</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetTab__ctor_" data-uid="FarPoint.Win.Spread.SheetTab.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_SheetTab__ctor_System_Windows_Forms_Control_System_Drawing_Color_System_Drawing_Color_System_Drawing_Font_" data-uid="FarPoint.Win.Spread.SheetTab.#ctor(System.Windows.Forms.Control,System.Drawing.Color,System.Drawing.Color,System.Drawing.Font)">SheetTab(Control, Color, Color, Font)</h4>
<div class="markdown level1 summary"><p>Creates a new sheet name tab for the specified control
with the specified appearance settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SheetTab(Control owner, Color backColor, Color foreColor, Font font)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(owner As Control, backColor As Color, foreColor As Color, font As Font)</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="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></td>
      <td><span class="parametername">owner</span></td>
      <td><p>Control that owns the new sheet tab (SheetTab object)</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">backColor</span></td>
      <td><p>Background color of the sheet tab</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">foreColor</span></td>
      <td><p>Text color of the sheet tab</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">font</span></td>
      <td><p>Text font of the sheet tab</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetTab__ctor_" data-uid="FarPoint.Win.Spread.SheetTab.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_SheetTab__ctor_System_Windows_Forms_Control_System_Drawing_Color_System_Drawing_Color_System_Drawing_Font_System_Int32_" data-uid="FarPoint.Win.Spread.SheetTab.#ctor(System.Windows.Forms.Control,System.Drawing.Color,System.Drawing.Color,System.Drawing.Font,System.Int32)">SheetTab(Control, Color, Color, Font, int)</h4>
<div class="markdown level1 summary"><p>Creates a new sheet name tab for the specified control
with the specified appearance and size settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SheetTab(Control owner, Color backColor, Color foreColor, Font font, int size)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(owner As Control, backColor As Color, foreColor As Color, font As Font, size As Integer)</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="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></td>
      <td><span class="parametername">owner</span></td>
      <td><p>Control that owns the new sheet tab (SheetTab object)</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">backColor</span></td>
      <td><p>Background color of the sheet tab</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">foreColor</span></td>
      <td><p>Text color of the sheet tab</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">font</span></td>
      <td><p>Text font of the sheet tab</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>Integer width of the tab in pixels</p>
</td>
    </tr>
  </tbody>
</table>
</div>
