# C1.WPF.FlexGrid.ColumnCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_FlexGrid_ColumnCollection" data-uid="C1.WPF.FlexGrid.ColumnCollection" class="text-break">ColumnCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="C1.WPF.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="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1">Collection</a>&lt;<a class="xref" href="C1.WPF.FlexGrid.Column.html">Column</a>&gt;</div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.observablecollection-1">ObservableCollection</a>&lt;<a class="xref" href="C1.WPF.FlexGrid.Column.html">Column</a>&gt;</div>
    <div class="level3"><a class="xref" href="C1.WPF.FlexGrid.RowColCollection-1.html">RowColCollection</a>&lt;<a class="xref" href="C1.WPF.FlexGrid.Column.html">Column</a>&gt;</div>
    <div class="level4"><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.generic.ilist-1">IList</a>&lt;<a class="xref" href="C1.WPF.FlexGrid.Column.html">Column</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="C1.WPF.FlexGrid.Column.html">Column</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="C1.WPF.FlexGrid.Column.html">Column</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a class="xref" href="C1.WPF.FlexGrid.Column.html">Column</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="C1.WPF.FlexGrid.Column.html">Column</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.specialized.inotifycollectionchanged">INotifyCollectionChanged</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.FlexGrid.html">C1.WPF.FlexGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.FlexGrid.4.6.2.dll</h6>
  <h5 id="C1_WPF_FlexGrid_ColumnCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ColumnCollection : RowColCollection&lt;Column&gt;, IList&lt;Column&gt;, ICollection&lt;Column&gt;, IList, ICollection, IReadOnlyList&lt;Column&gt;, IReadOnlyCollection&lt;Column&gt;, IEnumerable&lt;Column&gt;, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ColumnCollection
    Inherits RowColCollection(Of Column)
    Implements IList(Of Column), ICollection(Of Column), IList, ICollection, IReadOnlyList(Of Column), IReadOnlyCollection(Of Column), IEnumerable(Of Column), IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged</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_WPF_FlexGrid_ColumnCollection_Item_System_String_" data-uid="C1.WPF.FlexGrid.ColumnCollection.Item(System.String)">
          <a class="xref" href="C1.WPF.FlexGrid.ColumnCollection.Item.html#C1_WPF_FlexGrid_ColumnCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="C1.WPF.FlexGrid.Column.html">Column</a> by its name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_ColumnCollection_Selected" data-uid="C1.WPF.FlexGrid.ColumnCollection.Selected">
          <a class="xref" href="C1.WPF.FlexGrid.ColumnCollection.Selected.html#C1_WPF_FlexGrid_ColumnCollection_Selected">Selected</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a list with the columns 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_WPF_FlexGrid_ColumnCollection_Contains_System_String_" data-uid="C1.WPF.FlexGrid.ColumnCollection.Contains(System.String)">
          <a class="xref" href="C1.WPF.FlexGrid.ColumnCollection.Contains.html#C1_WPF_FlexGrid_ColumnCollection_Contains_System_String_">Contains(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether the collection contains a <a class="xref" href="C1.WPF.FlexGrid.Column.html">Column</a>
with a given name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_ColumnCollection_IndexOf_System_String_" data-uid="C1.WPF.FlexGrid.ColumnCollection.IndexOf(System.String)">
          <a class="xref" href="C1.WPF.FlexGrid.ColumnCollection.IndexOf.html#C1_WPF_FlexGrid_ColumnCollection_IndexOf_System_String_">IndexOf(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the column with a given name in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_ColumnCollection_OnCollectionChanged_System_Collections_Specialized_NotifyCollectionChangedEventArgs_" data-uid="C1.WPF.FlexGrid.ColumnCollection.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs)">
          <a class="xref" href="C1.WPF.FlexGrid.ColumnCollection.OnCollectionChanged.html#C1_WPF_FlexGrid_ColumnCollection_OnCollectionChanged_System_Collections_Specialized_NotifyCollectionChangedEventArgs_">OnCollectionChanged(NotifyCollectionChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <span class="xref">CollectionChanged</span> event.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
