# C1.Win.FlexGrid.ColumnCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_FlexGrid_ColumnCollection" data-uid="C1.Win.FlexGrid.ColumnCollection" class="text-break">ColumnCollection Class
</h1>
  <div class="markdown level0 summary"><p>Collection of grid <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> objects.</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"><a class="xref" href="C1.Win.FlexGrid.RowColCollection.html">RowColCollection</a></div>
    <div class="level2"><span class="xref">ColumnCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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="C1.Win.FlexGrid.html">C1.Win.FlexGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.FlexGrid.10.dll</h6>
  <h5 id="C1_Win_FlexGrid_ColumnCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(ExpandableObjectConverter))]
public class ColumnCollection : RowColCollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(ExpandableObjectConverter))&gt;
Public Class ColumnCollection
    Inherits RowColCollection
    Implements 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="C1_Win_FlexGrid_ColumnCollection_Count" data-uid="C1.Win.FlexGrid.ColumnCollection.Count">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.Count.html#C1_Win_FlexGrid_ColumnCollection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> objects in this collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_Fixed" data-uid="C1.Win.FlexGrid.ColumnCollection.Fixed">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.Fixed.html#C1_Win_FlexGrid_ColumnCollection_Fixed">Fixed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of fixed columns in this collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_Item_System_Int32_" data-uid="C1.Win.FlexGrid.ColumnCollection.Item(System.Int32)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.Item.html#C1_Win_FlexGrid_ColumnCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_Item_System_String_" data-uid="C1.Win.FlexGrid.ColumnCollection.Item(System.String)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.Item.html#C1_Win_FlexGrid_ColumnCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> that has the specified column name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_Selected" data-uid="C1.Win.FlexGrid.ColumnCollection.Selected">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.Selected.html#C1_Win_FlexGrid_ColumnCollection_Selected">Selected</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a collection of <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> objects that are currently selected.</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="C1_Win_FlexGrid_ColumnCollection_Add" data-uid="C1.Win.FlexGrid.ColumnCollection.Add">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.Add.html#C1_Win_FlexGrid_ColumnCollection_Add">Add()</a>
        </td>
        <td class="markdown level1 summary"><p>Appends a new <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> object to this collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_Add_System_Int32_" data-uid="C1.Win.FlexGrid.ColumnCollection.Add(System.Int32)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.Add.html#C1_Win_FlexGrid_ColumnCollection_Add_System_Int32_">Add(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Appends a given number of <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> objects to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_BuildString_System_Boolean_" data-uid="C1.Win.FlexGrid.ColumnCollection.BuildString(System.Boolean)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.BuildString.html#C1_Win_FlexGrid_ColumnCollection_BuildString_System_Boolean_">BuildString(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a string build a string that contains a complete description of
the column collection, suitable for persisting the control state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_Contains_System_String_" data-uid="C1.Win.FlexGrid.ColumnCollection.Contains(System.String)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.Contains.html#C1_Win_FlexGrid_ColumnCollection_Contains_System_String_">Contains(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that determines whether the collection contains a <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> with the given name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_IndexOf_System_String_" data-uid="C1.Win.FlexGrid.ColumnCollection.IndexOf(System.String)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.IndexOf.html#C1_Win_FlexGrid_ColumnCollection_IndexOf_System_String_">IndexOf(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> with the specified name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_IndexOf_System_String_System_Boolean_" data-uid="C1.Win.FlexGrid.ColumnCollection.IndexOf(System.String,System.Boolean)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.IndexOf.html#C1_Win_FlexGrid_ColumnCollection_IndexOf_System_String_System_Boolean_">IndexOf(string, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> with the specified name, optionally
throwing an exception if the column is not found.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_IndexOf_System_String_System_Boolean_System_Int32_" data-uid="C1.Win.FlexGrid.ColumnCollection.IndexOf(System.String,System.Boolean,System.Int32)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.IndexOf.html#C1_Win_FlexGrid_ColumnCollection_IndexOf_System_String_System_Boolean_System_Int32_">IndexOf(string, bool, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> with the specified name, optionally
throwing an exception if the column is not found. The search starts at a specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_IndexOf_System_String_System_Int32_" data-uid="C1.Win.FlexGrid.ColumnCollection.IndexOf(System.String,System.Int32)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.IndexOf.html#C1_Win_FlexGrid_ColumnCollection_IndexOf_System_String_System_Int32_">IndexOf(string, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> with the specified name. The search starts at a specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_Insert_System_Int32_" data-uid="C1.Win.FlexGrid.ColumnCollection.Insert(System.Int32)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.Insert.html#C1_Win_FlexGrid_ColumnCollection_Insert_System_Int32_">Insert(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> object to this collection at a specified position.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_InsertRange_System_Int32_System_Int32_" data-uid="C1.Win.FlexGrid.ColumnCollection.InsertRange(System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.InsertRange.html#C1_Win_FlexGrid_ColumnCollection_InsertRange_System_Int32_System_Int32_">InsertRange(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a range of <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> objects to the collection at a specified position.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_Move_System_Int32_System_Int32_" data-uid="C1.Win.FlexGrid.ColumnCollection.Move(System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.Move.html#C1_Win_FlexGrid_ColumnCollection_Move_System_Int32_System_Int32_">Move(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Moves a <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> object to a new position in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_MoveRange_System_Int32_System_Int32_System_Int32_" data-uid="C1.Win.FlexGrid.ColumnCollection.MoveRange(System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.MoveRange.html#C1_Win_FlexGrid_ColumnCollection_MoveRange_System_Int32_System_Int32_System_Int32_">MoveRange(int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Moves a range of <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> objects to a new position in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_ParseString_C1_Win_FlexGrid_C1FlexGridBase_System_String_" data-uid="C1.Win.FlexGrid.ColumnCollection.ParseString(C1.Win.FlexGrid.C1FlexGridBase,System.String)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.ParseString.html#C1_Win_FlexGrid_ColumnCollection_ParseString_C1_Win_FlexGrid_C1FlexGridBase_System_String_">ParseString(C1FlexGridBase, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Parses a string containg a description of the column collection (usually obtained
by calling the <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.BuildString.html#C1_Win_FlexGrid_ColumnCollection_BuildString_System_Boolean_">BuildString(bool)</a> method) and applies it to a grid.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_Remove_C1_Win_FlexGrid_Column_" data-uid="C1.Win.FlexGrid.ColumnCollection.Remove(C1.Win.FlexGrid.Column)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.Remove.html#C1_Win_FlexGrid_ColumnCollection_Remove_C1_Win_FlexGrid_Column_">Remove(Column)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> object from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_Remove_System_Int32_" data-uid="C1.Win.FlexGrid.ColumnCollection.Remove(System.Int32)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.Remove.html#C1_Win_FlexGrid_ColumnCollection_Remove_System_Int32_">Remove(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> object from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_Remove_System_String_" data-uid="C1.Win.FlexGrid.ColumnCollection.Remove(System.String)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.Remove.html#C1_Win_FlexGrid_ColumnCollection_Remove_System_String_">Remove(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> object from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_RemoveRange_System_Int32_System_Int32_" data-uid="C1.Win.FlexGrid.ColumnCollection.RemoveRange(System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.RemoveRange.html#C1_Win_FlexGrid_ColumnCollection_RemoveRange_System_Int32_System_Int32_">RemoveRange(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a range of <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> objects from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_ColumnCollection_Update" data-uid="C1.Win.FlexGrid.ColumnCollection.Update">
          <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.Update.html#C1_Win_FlexGrid_ColumnCollection_Update">Update()</a>
        </td>
        <td class="markdown level1 summary"><p>Updates the position and data index of each row in this collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
