# FarPoint.Win.Spread.SheetView.AddControl

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_SheetView_AddControl_" data-uid="FarPoint.Win.Spread.SheetView.AddControl*">AddControl Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_SheetView_AddControl_" data-uid="FarPoint.Win.Spread.SheetView.AddControl*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_AddControl_System_Windows_Forms_Control_" data-uid="FarPoint.Win.Spread.SheetView.AddControl(System.Windows.Forms.Control)">AddControl(Control)</h4>
<div class="markdown level1 summary"><p>Adds a child control to the control container for the sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void AddControl(Control control)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub AddControl(control 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">control</span></td>
      <td><p>Child control to add</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_AddControl_" data-uid="FarPoint.Win.Spread.SheetView.AddControl*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_AddControl_System_Windows_Forms_Control_System_Int32_System_Int32_" data-uid="FarPoint.Win.Spread.SheetView.AddControl(System.Windows.Forms.Control,System.Int32,System.Int32)">AddControl(Control, int, int)</h4>
<div class="markdown level1 summary"><p>Adds a child control to the control container for the sheet at the specified row and column.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void AddControl(Control control, int row, int column)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub AddControl(control As Control, row As Integer, column 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">control</span></td>
      <td><p>Child control to add</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Row index at which to add child control</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index at which to add child control</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_AddControl_" data-uid="FarPoint.Win.Spread.SheetView.AddControl*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_AddControl_System_Windows_Forms_Control_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Win.Spread.SheetView.AddControl(System.Windows.Forms.Control,System.Int32,System.Int32,System.Int32,System.Int32)">AddControl(Control, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Adds a child control to the control container for the sheet at the specified row and column, with specified pixel offsets.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void AddControl(Control control, int row, int column, int offsetX, int offsetY)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub AddControl(control As Control, row As Integer, column As Integer, offsetX As Integer, offsetY 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">control</span></td>
      <td><p>Child control to add</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Row index at which to add child control</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index at which to add child control</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">offsetX</span></td>
      <td><p>Number of horizontal pixels to offset from the specified column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">offsetY</span></td>
      <td><p>Number of vertical pixels to offset from the specified row index</p>
</td>
    </tr>
  </tbody>
</table>
</div>
