# C1.Win.Schedule.UI.ThemesCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Schedule_UI_ThemesCollection" data-uid="C1.Win.Schedule.UI.ThemesCollection" class="text-break">ThemesCollection Class
</h1>
  <div class="markdown level0 summary"><p>Use weak references to cleanup not used themes</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">ThemesCollection</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Schedule.UI.html">C1.Win.Schedule.UI</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Schedule.10.dll</h6>
  <h5 id="C1_Win_Schedule_UI_ThemesCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ThemesCollection</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ThemesCollection</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_Schedule_UI_ThemesCollection_Item_System_String_" data-uid="C1.Win.Schedule.UI.ThemesCollection.Item(System.String)">
          <a class="xref" href="C1.Win.Schedule.UI.ThemesCollection.Item.html#C1_Win_Schedule_UI_ThemesCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the theme at the specified key.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_ThemesCollection_SyncRoot" data-uid="C1.Win.Schedule.UI.ThemesCollection.SyncRoot">
          <a class="xref" href="C1.Win.Schedule.UI.ThemesCollection.SyncRoot.html#C1_Win_Schedule_UI_ThemesCollection_SyncRoot">SyncRoot</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an object that can be used to synchronize access to the collection.</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_Schedule_UI_ThemesCollection_Add_C1_Win_Schedule_UI_BaseTheme_" data-uid="C1.Win.Schedule.UI.ThemesCollection.Add(C1.Win.Schedule.UI.BaseTheme)">
          <a class="xref" href="C1.Win.Schedule.UI.ThemesCollection.Add.html#C1_Win_Schedule_UI_ThemesCollection_Add_C1_Win_Schedule_UI_BaseTheme_">Add(BaseTheme)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a theme to the end of the <a class="xref" href="C1.Win.Schedule.UI.ThemesCollection.html">ThemesCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_ThemesCollection_Clear" data-uid="C1.Win.Schedule.UI.ThemesCollection.Clear">
          <a class="xref" href="C1.Win.Schedule.UI.ThemesCollection.Clear.html#C1_Win_Schedule_UI_ThemesCollection_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all themes from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_ThemesCollection_Contains_System_String_" data-uid="C1.Win.Schedule.UI.ThemesCollection.Contains(System.String)">
          <a class="xref" href="C1.Win.Schedule.UI.ThemesCollection.Contains.html#C1_Win_Schedule_UI_ThemesCollection_Contains_System_String_">Contains(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the <a class="xref" href="C1.Win.Schedule.UI.ThemesCollection.html">ThemesCollection</a> contains the theme by specified name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_ThemesCollection_Remove_C1_Win_Schedule_UI_BaseTheme_" data-uid="C1.Win.Schedule.UI.ThemesCollection.Remove(C1.Win.Schedule.UI.BaseTheme)">
          <a class="xref" href="C1.Win.Schedule.UI.ThemesCollection.Remove.html#C1_Win_Schedule_UI_ThemesCollection_Remove_C1_Win_Schedule_UI_BaseTheme_">Remove(BaseTheme)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the first occurrence of a specific theme from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_ThemesCollection_Remove_System_String_" data-uid="C1.Win.Schedule.UI.ThemesCollection.Remove(System.String)">
          <a class="xref" href="C1.Win.Schedule.UI.ThemesCollection.Remove.html#C1_Win_Schedule_UI_ThemesCollection_Remove_System_String_">Remove(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the first occurrence of a specific theme name from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Schedule_UI_ThemesCollection_ToList" data-uid="C1.Win.Schedule.UI.ThemesCollection.ToList">
          <a class="xref" href="C1.Win.Schedule.UI.ThemesCollection.ToList.html#C1_Win_Schedule_UI_ThemesCollection_ToList">ToList()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the list of themes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
