# C1.Win.GanttView.ResourceCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_GanttView_ResourceCollection" data-uid="C1.Win.GanttView.ResourceCollection" class="text-break">ResourceCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of resources.</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">ResourceCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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>
  <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_ResourceCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ListBindable(true)]
public class ResourceCollection : BaseCollection&lt;Resource&gt;, IBindingList, IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ListBindable(True)&gt;
Public Class ResourceCollection
    Inherits BaseCollection(Of Resource)
    Implements IBindingList, IList, ICollection, 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_GanttView_ResourceCollection_AllowEdit" data-uid="C1.Win.GanttView.ResourceCollection.AllowEdit">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.AllowEdit.html#C1_Win_GanttView_ResourceCollection_AllowEdit">AllowEdit</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether items in the underlying list can be edited.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ResourceCollection_AllowNew" data-uid="C1.Win.GanttView.ResourceCollection.AllowNew">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.AllowNew.html#C1_Win_GanttView_ResourceCollection_AllowNew">AllowNew</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether you can add items to the list using AddNew.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ResourceCollection_AllowRemove" data-uid="C1.Win.GanttView.ResourceCollection.AllowRemove">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.AllowRemove.html#C1_Win_GanttView_ResourceCollection_AllowRemove">AllowRemove</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether you can remove items from the list, using Remove or RemoveAt.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ResourceCollection_SupportsSorting" data-uid="C1.Win.GanttView.ResourceCollection.SupportsSorting">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.SupportsSorting.html#C1_Win_GanttView_ResourceCollection_SupportsSorting">SupportsSorting</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the list supports sorting.</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_GanttView_ResourceCollection_AddNew" data-uid="C1.Win.GanttView.ResourceCollection.AddNew">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.AddNew.html#C1_Win_GanttView_ResourceCollection_AddNew">AddNew()</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new item to the list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ResourceCollection_ApplySort_System_ComponentModel_PropertyDescriptor_System_ComponentModel_ListSortDirection_" data-uid="C1.Win.GanttView.ResourceCollection.ApplySort(System.ComponentModel.PropertyDescriptor,System.ComponentModel.ListSortDirection)">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.ApplySort.html#C1_Win_GanttView_ResourceCollection_ApplySort_System_ComponentModel_PropertyDescriptor_System_ComponentModel_ListSortDirection_">ApplySort(PropertyDescriptor, ListSortDirection)</a>
        </td>
        <td class="markdown level1 summary"><p>Sorts the resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ResourceCollection_ClearItems" data-uid="C1.Win.GanttView.ResourceCollection.ClearItems">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.ClearItems.html#C1_Win_GanttView_ResourceCollection_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_ResourceCollection_IndexOf_System_Int32_" data-uid="C1.Win.GanttView.ResourceCollection.IndexOf(System.Int32)">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.IndexOf.html#C1_Win_GanttView_ResourceCollection_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 resource.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ResourceCollection_IndexOf_System_String_" data-uid="C1.Win.GanttView.ResourceCollection.IndexOf(System.String)">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.IndexOf.html#C1_Win_GanttView_ResourceCollection_IndexOf_System_String_">IndexOf(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for the specified Name and returns the zero-based index of the corresponding resource.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ResourceCollection_InsertItem_System_Int32_C1_Win_GanttView_Resource_" data-uid="C1.Win.GanttView.ResourceCollection.InsertItem(System.Int32,C1.Win.GanttView.Resource)">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.InsertItem.html#C1_Win_GanttView_ResourceCollection_InsertItem_System_Int32_C1_Win_GanttView_Resource_">InsertItem(int, Resource)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts an item at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ResourceCollection_OnListChanged_System_ComponentModel_ListChangedEventArgs_" data-uid="C1.Win.GanttView.ResourceCollection.OnListChanged(System.ComponentModel.ListChangedEventArgs)">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.OnListChanged.html#C1_Win_GanttView_ResourceCollection_OnListChanged_System_ComponentModel_ListChangedEventArgs_">OnListChanged(ListChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the ListChanged event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ResourceCollection_RemoveItem_System_Int32_" data-uid="C1.Win.GanttView.ResourceCollection.RemoveItem(System.Int32)">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.RemoveItem.html#C1_Win_GanttView_ResourceCollection_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_ResourceCollection_RemoveSort" data-uid="C1.Win.GanttView.ResourceCollection.RemoveSort">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.RemoveSort.html#C1_Win_GanttView_ResourceCollection_RemoveSort">RemoveSort()</a>
        </td>
        <td class="markdown level1 summary"><p>Remove all sorts were applied to the tasks.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ResourceCollection_Search_System_Int32_" data-uid="C1.Win.GanttView.ResourceCollection.Search(System.Int32)">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.Search.html#C1_Win_GanttView_ResourceCollection_Search_System_Int32_">Search(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for a <a class="xref" href="C1.Win.GanttView.Resource.html">Resource</a> with the specified ID.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ResourceCollection_Search_System_String_" data-uid="C1.Win.GanttView.ResourceCollection.Search(System.String)">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.Search.html#C1_Win_GanttView_ResourceCollection_Search_System_String_">Search(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for a <a class="xref" href="C1.Win.GanttView.Resource.html">Resource</a> with the specified Name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ResourceCollection_SetItem_System_Int32_C1_Win_GanttView_Resource_" data-uid="C1.Win.GanttView.ResourceCollection.SetItem(System.Int32,C1.Win.GanttView.Resource)">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.SetItem.html#C1_Win_GanttView_ResourceCollection_SetItem_System_Int32_C1_Win_GanttView_Resource_">SetItem(int, Resource)</a>
        </td>
        <td class="markdown level1 summary"><p>Replaces the item at the specified index.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</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_ResourceCollection_AddingNew" data-uid="C1.Win.GanttView.ResourceCollection.AddingNew">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.AddingNew.html">AddingNew</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs before an item is added to the underlying list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_ResourceCollection_ListChanged" data-uid="C1.Win.GanttView.ResourceCollection.ListChanged">
          <a class="xref" href="C1.Win.GanttView.ResourceCollection.ListChanged.html">ListChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the list changes or an item in the list changes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
