# C1.C1Preview.TabPositionCollection.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_TabPositionCollection_Add_" data-uid="C1.C1Preview.TabPositionCollection.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_TabPositionCollection_Add_" data-uid="C1.C1Preview.TabPositionCollection.Add*"></a>
<h4 id="C1_C1Preview_TabPositionCollection_Add_C1_C1Preview_Unit_" data-uid="C1.C1Preview.TabPositionCollection.Add(C1.C1Preview.Unit)">Add(Unit)</h4>
<div class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.C1Preview.TabPosition.html">TabPosition</a> object,
initializes it with the specified tab stop position,
and adds it to the current collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int Add(Unit tabPosition)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(tabPosition As Unit) 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="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">tabPosition</span></td>
      <td><p>The position of the tab stop relative to the left edge of the text area.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>The index of the added <a class="xref" href="C1.C1Preview.TabPosition.html">TabPosition</a> object in the current collection.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_TabPositionCollection_Add_" data-uid="C1.C1Preview.TabPositionCollection.Add*"></a>
<h4 id="C1_C1Preview_TabPositionCollection_Add_C1_C1Preview_Unit_C1_C1Preview_TabAlignmentEnum_" data-uid="C1.C1Preview.TabPositionCollection.Add(C1.C1Preview.Unit,C1.C1Preview.TabAlignmentEnum)">Add(Unit, TabAlignmentEnum)</h4>
<div class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.C1Preview.TabPosition.html">TabPosition</a> object,
initializes it with the specified tab stop position and text alignment,
and adds it to the current collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int Add(Unit tabPosition, TabAlignmentEnum tabAlignment)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(tabPosition As Unit, tabAlignment As TabAlignmentEnum) 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="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">tabPosition</span></td>
      <td><p>The position of the tab stop relative to the left edge of the text area.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.TabAlignmentEnum.html">TabAlignmentEnum</a></td>
      <td><span class="parametername">tabAlignment</span></td>
      <td><p>The text alignment at the specified tab stop.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>The index of the added <a class="xref" href="C1.C1Preview.TabPosition.html">TabPosition</a> object in the current collection.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_TabPositionCollection_Add_" data-uid="C1.C1Preview.TabPositionCollection.Add*"></a>
<h4 id="C1_C1Preview_TabPositionCollection_Add_C1_C1Preview_Unit_C1_C1Preview_TabAlignmentEnum_System_Char_" data-uid="C1.C1Preview.TabPositionCollection.Add(C1.C1Preview.Unit,C1.C1Preview.TabAlignmentEnum,System.Char)">Add(Unit, TabAlignmentEnum, char)</h4>
<div class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.C1Preview.TabPosition.html">TabPosition</a> object,
initializes it with the specified tab stop position, text alignment and fill char,
and adds it to the current collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int Add(Unit tabPosition, TabAlignmentEnum tabAlignment, char fillChar)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(tabPosition As Unit, tabAlignment As TabAlignmentEnum, fillChar As Char) 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="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">tabPosition</span></td>
      <td><p>The position of the tab stop relative to the left edge of the text area.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.TabAlignmentEnum.html">TabAlignmentEnum</a></td>
      <td><span class="parametername">tabAlignment</span></td>
      <td><p>The text alignment at the specified tab stop.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.char">char</a></td>
      <td><span class="parametername">fillChar</span></td>
      <td><p>The fill char between the preceding and the added tab stop.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>The index of the added <a class="xref" href="C1.C1Preview.TabPosition.html">TabPosition</a> object in the current collection.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_TabPositionCollection_Add_" data-uid="C1.C1Preview.TabPositionCollection.Add*"></a>
<h4 id="C1_C1Preview_TabPositionCollection_Add_C1_C1Preview_TabPosition_" data-uid="C1.C1Preview.TabPositionCollection.Add(C1.C1Preview.TabPosition)">Add(TabPosition)</h4>
<div class="markdown level1 summary"><p>Adds a <a class="xref" href="C1.C1Preview.TabPosition.html">TabPosition</a> object to the current collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int Add(TabPosition tabPosition)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(tabPosition As TabPosition) 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="C1.C1Preview.TabPosition.html">TabPosition</a></td>
      <td><span class="parametername">tabPosition</span></td>
      <td><p>The object to add.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>The index of <code class="paramref">tabPosition</code> in the current collection.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
