# C1.Win.GanttView.CustomCalendarCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_GanttView_CustomCalendarCollection" data-uid="C1.Win.GanttView.CustomCalendarCollection" class="text-break">CustomCalendarCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of custom calendars.</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">CustomCalendarCollection</span></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_CustomCalendarCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ListBindable(false)]
public class CustomCalendarCollection : BaseCollection&lt;CustomCalendar&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ListBindable(False)&gt;
Public Class CustomCalendarCollection
    Inherits BaseCollection(Of CustomCalendar)</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_CustomCalendarCollection_ClearItems" data-uid="C1.Win.GanttView.CustomCalendarCollection.ClearItems">
          <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.ClearItems.html#C1_Win_GanttView_CustomCalendarCollection_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_CustomCalendarCollection_IndexOf_System_Int32_" data-uid="C1.Win.GanttView.CustomCalendarCollection.IndexOf(System.Int32)">
          <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.IndexOf.html#C1_Win_GanttView_CustomCalendarCollection_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 calendar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_CustomCalendarCollection_IndexOf_System_String_" data-uid="C1.Win.GanttView.CustomCalendarCollection.IndexOf(System.String)">
          <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.IndexOf.html#C1_Win_GanttView_CustomCalendarCollection_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 calendar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_CustomCalendarCollection_InsertItem_System_Int32_C1_Win_GanttView_CustomCalendar_" data-uid="C1.Win.GanttView.CustomCalendarCollection.InsertItem(System.Int32,C1.Win.GanttView.CustomCalendar)">
          <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.InsertItem.html#C1_Win_GanttView_CustomCalendarCollection_InsertItem_System_Int32_C1_Win_GanttView_CustomCalendar_">InsertItem(int, CustomCalendar)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts an item at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_CustomCalendarCollection_LoadXml_System_IO_Stream_" data-uid="C1.Win.GanttView.CustomCalendarCollection.LoadXml(System.IO.Stream)">
          <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.LoadXml.html#C1_Win_GanttView_CustomCalendarCollection_LoadXml_System_IO_Stream_">LoadXml(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the contents of <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.html">CustomCalendarCollection</a> from a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_CustomCalendarCollection_LoadXml_System_String_" data-uid="C1.Win.GanttView.CustomCalendarCollection.LoadXml(System.String)">
          <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.LoadXml.html#C1_Win_GanttView_CustomCalendarCollection_LoadXml_System_String_">LoadXml(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the contents of <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.html">CustomCalendarCollection</a> from an XML file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_CustomCalendarCollection_LoadXml_System_Xml_XmlDocument_" data-uid="C1.Win.GanttView.CustomCalendarCollection.LoadXml(System.Xml.XmlDocument)">
          <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.LoadXml.html#C1_Win_GanttView_CustomCalendarCollection_LoadXml_System_Xml_XmlDocument_">LoadXml(XmlDocument)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the contents of <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.html">CustomCalendarCollection</a> from an <span class="xref">System.Xml.XmlDocument</span>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_CustomCalendarCollection_OnListChanged_System_ComponentModel_ListChangedEventArgs_" data-uid="C1.Win.GanttView.CustomCalendarCollection.OnListChanged(System.ComponentModel.ListChangedEventArgs)">
          <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.OnListChanged.html#C1_Win_GanttView_CustomCalendarCollection_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_CustomCalendarCollection_RemoveItem_System_Int32_" data-uid="C1.Win.GanttView.CustomCalendarCollection.RemoveItem(System.Int32)">
          <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.RemoveItem.html#C1_Win_GanttView_CustomCalendarCollection_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_CustomCalendarCollection_SaveXml_System_IO_Stream_" data-uid="C1.Win.GanttView.CustomCalendarCollection.SaveXml(System.IO.Stream)">
          <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.SaveXml.html#C1_Win_GanttView_CustomCalendarCollection_SaveXml_System_IO_Stream_">SaveXml(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the contents of <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.html">CustomCalendarCollection</a> into a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_CustomCalendarCollection_SaveXml_System_IO_Stream_System_Text_Encoding_" data-uid="C1.Win.GanttView.CustomCalendarCollection.SaveXml(System.IO.Stream,System.Text.Encoding)">
          <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.SaveXml.html#C1_Win_GanttView_CustomCalendarCollection_SaveXml_System_IO_Stream_System_Text_Encoding_">SaveXml(Stream, Encoding)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the contents of <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.html">CustomCalendarCollection</a> into a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_CustomCalendarCollection_SaveXml_System_String_" data-uid="C1.Win.GanttView.CustomCalendarCollection.SaveXml(System.String)">
          <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.SaveXml.html#C1_Win_GanttView_CustomCalendarCollection_SaveXml_System_String_">SaveXml(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the contents of <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.html">CustomCalendarCollection</a> into an XML file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_CustomCalendarCollection_SaveXml_System_String_System_Text_Encoding_" data-uid="C1.Win.GanttView.CustomCalendarCollection.SaveXml(System.String,System.Text.Encoding)">
          <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.SaveXml.html#C1_Win_GanttView_CustomCalendarCollection_SaveXml_System_String_System_Text_Encoding_">SaveXml(string, Encoding)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the contents of <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.html">CustomCalendarCollection</a> into an XML file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_CustomCalendarCollection_Search_System_Int32_" data-uid="C1.Win.GanttView.CustomCalendarCollection.Search(System.Int32)">
          <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.Search.html#C1_Win_GanttView_CustomCalendarCollection_Search_System_Int32_">Search(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for a <a class="xref" href="C1.Win.GanttView.CustomCalendar.html">CustomCalendar</a> with the specified ID.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_CustomCalendarCollection_Search_System_String_" data-uid="C1.Win.GanttView.CustomCalendarCollection.Search(System.String)">
          <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.Search.html#C1_Win_GanttView_CustomCalendarCollection_Search_System_String_">Search(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for a <a class="xref" href="C1.Win.GanttView.CustomCalendar.html">CustomCalendar</a> with the specified Name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_CustomCalendarCollection_SetItem_System_Int32_C1_Win_GanttView_CustomCalendar_" data-uid="C1.Win.GanttView.CustomCalendarCollection.SetItem(System.Int32,C1.Win.GanttView.CustomCalendar)">
          <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.SetItem.html#C1_Win_GanttView_CustomCalendarCollection_SetItem_System_Int32_C1_Win_GanttView_CustomCalendar_">SetItem(int, CustomCalendar)</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_CustomCalendarCollection_ListChanged" data-uid="C1.Win.GanttView.CustomCalendarCollection.ListChanged">
          <a class="xref" href="C1.Win.GanttView.CustomCalendarCollection.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>
