# GrapeCity.Documents.Word.TextColumnCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_TextColumnCollection" data-uid="GrapeCity.Documents.Word.TextColumnCollection" class="text-break">TextColumnCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="GrapeCity.Documents.Word.TextColumn.html">TextColumn</a> objects
that represent all columns of text in a section.</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"><span class="xref">TextColumnCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.TextColumn.html">TextColumn</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Word.html">GrapeCity.Documents.Word</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_TextColumnCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TextColumnCollection : IEnumerable&lt;TextColumn&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TextColumnCollection
    Implements IEnumerable(Of TextColumn), IEnumerable</code></pre>
  </div>
  <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="GrapeCity_Documents_Word_TextColumnCollection_Count" data-uid="GrapeCity.Documents.Word.TextColumnCollection.Count">
          <a class="xref" href="GrapeCity.Documents.Word.TextColumnCollection.Count.html#GrapeCity_Documents_Word_TextColumnCollection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of columns in the section of a document.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TextColumnCollection_EvenlySpaced" data-uid="GrapeCity.Documents.Word.TextColumnCollection.EvenlySpaced">
          <a class="xref" href="GrapeCity.Documents.Word.TextColumnCollection.EvenlySpaced.html#GrapeCity_Documents_Word_TextColumnCollection_EvenlySpaced">EvenlySpaced</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether all text columns are of equal width and evenly spaced.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TextColumnCollection_Item_System_Int32_" data-uid="GrapeCity.Documents.Word.TextColumnCollection.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Word.TextColumnCollection.Item.html#GrapeCity_Documents_Word_TextColumnCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a text column at a specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TextColumnCollection_LineBetween" data-uid="GrapeCity.Documents.Word.TextColumnCollection.LineBetween">
          <a class="xref" href="GrapeCity.Documents.Word.TextColumnCollection.LineBetween.html#GrapeCity_Documents_Word_TextColumnCollection_LineBetween">LineBetween</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to add a vertical line between columns.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TextColumnCollection_Spacing" data-uid="GrapeCity.Documents.Word.TextColumnCollection.Spacing">
          <a class="xref" href="GrapeCity.Documents.Word.TextColumnCollection.Spacing.html#GrapeCity_Documents_Word_TextColumnCollection_Spacing">Spacing</a>
        </td>
        <td class="markdown level1 summary"><p>When columns are evenly spaced (see <a class="xref" href="GrapeCity.Documents.Word.TextColumnCollection.EvenlySpaced.html#GrapeCity_Documents_Word_TextColumnCollection_EvenlySpaced">EvenlySpaced</a>), gets or sets the amount of space between each column in points.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TextColumnCollection_Width" data-uid="GrapeCity.Documents.Word.TextColumnCollection.Width">
          <a class="xref" href="GrapeCity.Documents.Word.TextColumnCollection.Width.html#GrapeCity_Documents_Word_TextColumnCollection_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>When columns are evenly spaced (see <a class="xref" href="GrapeCity.Documents.Word.TextColumnCollection.EvenlySpaced.html#GrapeCity_Documents_Word_TextColumnCollection_EvenlySpaced">EvenlySpaced</a>), gets or sets the width of the columns.</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="GrapeCity_Documents_Word_TextColumnCollection_Add" data-uid="GrapeCity.Documents.Word.TextColumnCollection.Add">
          <a class="xref" href="GrapeCity.Documents.Word.TextColumnCollection.Add.html#GrapeCity_Documents_Word_TextColumnCollection_Add">Add()</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new <a class="xref" href="GrapeCity.Documents.Word.TextColumn.html">TextColumn</a> to the section.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TextColumnCollection_Add_System_Single_" data-uid="GrapeCity.Documents.Word.TextColumnCollection.Add(System.Single)">
          <a class="xref" href="GrapeCity.Documents.Word.TextColumnCollection.Add.html#GrapeCity_Documents_Word_TextColumnCollection_Add_System_Single_">Add(float)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new <a class="xref" href="GrapeCity.Documents.Word.TextColumn.html">TextColumn</a> to the section.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TextColumnCollection_Add_System_Single_System_Single_" data-uid="GrapeCity.Documents.Word.TextColumnCollection.Add(System.Single,System.Single)">
          <a class="xref" href="GrapeCity.Documents.Word.TextColumnCollection.Add.html#GrapeCity_Documents_Word_TextColumnCollection_Add_System_Single_System_Single_">Add(float, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new <a class="xref" href="GrapeCity.Documents.Word.TextColumn.html">TextColumn</a> to the section.</p>
<p>
This method sets the <a class="xref" href="GrapeCity.Documents.Word.TextColumnCollection.EvenlySpaced.html#GrapeCity_Documents_Word_TextColumnCollection_EvenlySpaced">EvenlySpaced</a> property to false.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TextColumnCollection_GetEnumerator" data-uid="GrapeCity.Documents.Word.TextColumnCollection.GetEnumerator">
          <a class="xref" href="GrapeCity.Documents.Word.TextColumnCollection.GetEnumerator.html#GrapeCity_Documents_Word_TextColumnCollection_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an enumerator that iterates through the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_TextColumnCollection_SetCount_System_Int16_" data-uid="GrapeCity.Documents.Word.TextColumnCollection.SetCount(System.Int16)">
          <a class="xref" href="GrapeCity.Documents.Word.TextColumnCollection.SetCount.html#GrapeCity_Documents_Word_TextColumnCollection_SetCount_System_Int16_">SetCount(short)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the number of columns in a section of a document.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
