# C1.Win.GanttView.ColumnCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_GanttView_ColumnCollection" data-uid="C1.Win.GanttView.ColumnCollection" class="text-break">ColumnCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of grid columns.</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.Win.GanttView.BaseColumn.html">BaseColumn</a>&gt;</div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.bindinglist-1">BindingList</a>&lt;<a class="xref" href="C1.Win.GanttView.BaseColumn.html">BaseColumn</a>&gt;</div>
    <div class="level3"><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.Win.GanttView.BaseColumn.html">BaseColumn</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.Win.GanttView.BaseColumn.html">BaseColumn</a>&gt;</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.Win.GanttView.BaseColumn.html">BaseColumn</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.Win.GanttView.BaseColumn.html">BaseColumn</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.Win.GanttView.BaseColumn.html">BaseColumn</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.ibindinglist">IBindingList</a></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.ienumerable">IEnumerable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icanceladdnew">ICancelAddNew</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.iraiseitemchangedevents">IRaiseItemChangedEvents</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.GanttView.html">C1.Win.GanttView</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.GanttView.10.dll</h6>
  <h5 id="C1_Win_GanttView_ColumnCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ListBindable(false)]
public class ColumnCollection : BindingList&lt;BaseColumn&gt;, IList&lt;BaseColumn&gt;, ICollection&lt;BaseColumn&gt;, IReadOnlyList&lt;BaseColumn&gt;, IReadOnlyCollection&lt;BaseColumn&gt;, IEnumerable&lt;BaseColumn&gt;, IBindingList, IList, ICollection, IEnumerable, ICancelAddNew, IRaiseItemChangedEvents</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ListBindable(False)&gt;
Public Class ColumnCollection
    Inherits BindingList(Of BaseColumn)
    Implements IList(Of BaseColumn), ICollection(Of BaseColumn), IReadOnlyList(Of BaseColumn), IReadOnlyCollection(Of BaseColumn), IEnumerable(Of BaseColumn), IBindingList, IList, ICollection, IEnumerable, ICancelAddNew, IRaiseItemChangedEvents</code></pre>
  </div>
  <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_GanttView_ColumnCollection_ClearItems" data-uid="C1.Win.GanttView.ColumnCollection.ClearItems">
          <a class="xref" href="C1.Win.GanttView.ColumnCollection.ClearItems.html#C1_Win_GanttView_ColumnCollection_ClearItems">ClearItems()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all items from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ColumnCollection_IndexOf_C1_Win_GanttView_TaskProperty_" data-uid="C1.Win.GanttView.ColumnCollection.IndexOf(C1.Win.GanttView.TaskProperty)">
          <a class="xref" href="C1.Win.GanttView.ColumnCollection.IndexOf.html#C1_Win_GanttView_ColumnCollection_IndexOf_C1_Win_GanttView_TaskProperty_">IndexOf(TaskProperty)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for the specified value of <a class="xref" href="C1.Win.GanttView.TaskPropertyColumn.Property.html#C1_Win_GanttView_TaskPropertyColumn_Property">Property</a> and returns the zero-based index of the corresponding column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ColumnCollection_IndexOf_System_Int32_" data-uid="C1.Win.GanttView.ColumnCollection.IndexOf(System.Int32)">
          <a class="xref" href="C1.Win.GanttView.ColumnCollection.IndexOf.html#C1_Win_GanttView_ColumnCollection_IndexOf_System_Int32_">IndexOf(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for the specified ID and returns the zero-based index of the corresponding column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ColumnCollection_InsertItem_System_Int32_C1_Win_GanttView_BaseColumn_" data-uid="C1.Win.GanttView.ColumnCollection.InsertItem(System.Int32,C1.Win.GanttView.BaseColumn)">
          <a class="xref" href="C1.Win.GanttView.ColumnCollection.InsertItem.html#C1_Win_GanttView_ColumnCollection_InsertItem_System_Int32_C1_Win_GanttView_BaseColumn_">InsertItem(int, BaseColumn)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts an item at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ColumnCollection_RemoveItem_System_Int32_" data-uid="C1.Win.GanttView.ColumnCollection.RemoveItem(System.Int32)">
          <a class="xref" href="C1.Win.GanttView.ColumnCollection.RemoveItem.html#C1_Win_GanttView_ColumnCollection_RemoveItem_System_Int32_">RemoveItem(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the item at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ColumnCollection_Search_C1_Win_GanttView_TaskProperty_" data-uid="C1.Win.GanttView.ColumnCollection.Search(C1.Win.GanttView.TaskProperty)">
          <a class="xref" href="C1.Win.GanttView.ColumnCollection.Search.html#C1_Win_GanttView_ColumnCollection_Search_C1_Win_GanttView_TaskProperty_">Search(TaskProperty)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for a <a class="xref" href="C1.Win.GanttView.TaskPropertyColumn.html">TaskPropertyColumn</a> with the specified value of <a class="xref" href="C1.Win.GanttView.TaskPropertyColumn.Property.html#C1_Win_GanttView_TaskPropertyColumn_Property">Property</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ColumnCollection_Search_System_Int32_" data-uid="C1.Win.GanttView.ColumnCollection.Search(System.Int32)">
          <a class="xref" href="C1.Win.GanttView.ColumnCollection.Search.html#C1_Win_GanttView_ColumnCollection_Search_System_Int32_">Search(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for a <a class="xref" href="C1.Win.GanttView.BaseColumn.html">BaseColumn</a> with the specified ID.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ColumnCollection_SetItem_System_Int32_C1_Win_GanttView_BaseColumn_" data-uid="C1.Win.GanttView.ColumnCollection.SetItem(System.Int32,C1.Win.GanttView.BaseColumn)">
          <a class="xref" href="C1.Win.GanttView.ColumnCollection.SetItem.html#C1_Win_GanttView_ColumnCollection_SetItem_System_Int32_C1_Win_GanttView_BaseColumn_">SetItem(int, BaseColumn)</a>
        </td>
        <td class="markdown level1 summary"><p>Replaces the item at the specified index.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
