# C1.Schedule.Printing.PrintStyleCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Schedule_Printing_PrintStyleCollection" data-uid="C1.Schedule.Printing.PrintStyleCollection" class="text-break">PrintStyleCollection Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.Schedule.Printing.PrintStyleCollection.html">PrintStyleCollection</a> class represents the keyed collection of scheduler printing styles.
The <a class="xref" href="C1.Schedule.Printing.PrintStyle.StyleName.html#C1_Schedule_Printing_PrintStyle_StyleName">StyleName</a> property is used as a collection key.</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.Schedule.Printing.PrintStyle.html">PrintStyle</a>&gt;</div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection-2">KeyedCollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="C1.Schedule.Printing.PrintStyle.html">PrintStyle</a>&gt;</div>
    <div class="level3"><span class="xref">PrintStyleCollection</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.Schedule.Printing.PrintStyle.html">PrintStyle</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.Schedule.Printing.PrintStyle.html">PrintStyle</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.Schedule.Printing.PrintStyle.html">PrintStyle</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.Schedule.Printing.PrintStyle.html">PrintStyle</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.Schedule.Printing.PrintStyle.html">PrintStyle</a>&gt;</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.Schedule.Printing.html">C1.Schedule.Printing</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Schedule.10.dll</h6>
  <h5 id="C1_Schedule_Printing_PrintStyleCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(CollectionConverter))]
public class PrintStyleCollection : KeyedCollection&lt;string, PrintStyle&gt;, IList&lt;PrintStyle&gt;, ICollection&lt;PrintStyle&gt;, IList, ICollection, IReadOnlyList&lt;PrintStyle&gt;, IReadOnlyCollection&lt;PrintStyle&gt;, IEnumerable&lt;PrintStyle&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(CollectionConverter))&gt;
Public Class PrintStyleCollection
    Inherits KeyedCollection(Of String, PrintStyle)
    Implements IList(Of PrintStyle), ICollection(Of PrintStyle), IList, ICollection, IReadOnlyList(Of PrintStyle), IReadOnlyCollection(Of PrintStyle), IEnumerable(Of PrintStyle), IEnumerable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Schedule_Printing_PrintStyleCollection__ctor" data-uid="C1.Schedule.Printing.PrintStyleCollection.#ctor">
          <a class="xref" href="C1.Schedule.Printing.PrintStyleCollection.-ctor.html#C1_Schedule_Printing_PrintStyleCollection__ctor">PrintStyleCollection()</a>
        </td>
        <td class="markdown level1 summary"></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_Schedule_Printing_PrintStyleCollection_AddRange_C1_Schedule_Printing_PrintStyle___" data-uid="C1.Schedule.Printing.PrintStyleCollection.AddRange(C1.Schedule.Printing.PrintStyle[])">
          <a class="xref" href="C1.Schedule.Printing.PrintStyleCollection.AddRange.html#C1_Schedule_Printing_PrintStyleCollection_AddRange_C1_Schedule_Printing_PrintStyle___">AddRange(PrintStyle[])</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a set of <a class="xref" href="C1.Schedule.Printing.PrintStyle.html">PrintStyle</a> objects to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_Printing_PrintStyleCollection_GetKeyForItem_C1_Schedule_Printing_PrintStyle_" data-uid="C1.Schedule.Printing.PrintStyleCollection.GetKeyForItem(C1.Schedule.Printing.PrintStyle)">
          <a class="xref" href="C1.Schedule.Printing.PrintStyleCollection.GetKeyForItem.html#C1_Schedule_Printing_PrintStyleCollection_GetKeyForItem_C1_Schedule_Printing_PrintStyle_">GetKeyForItem(PrintStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Extracts the key from the specified item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_Printing_PrintStyleCollection_GetUniqueStyleName" data-uid="C1.Schedule.Printing.PrintStyleCollection.GetUniqueStyleName">
          <a class="xref" href="C1.Schedule.Printing.PrintStyleCollection.GetUniqueStyleName.html#C1_Schedule_Printing_PrintStyleCollection_GetUniqueStyleName">GetUniqueStyleName()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value which can be used
as unique style name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_Printing_PrintStyleCollection_InsertItem_System_Int32_C1_Schedule_Printing_PrintStyle_" data-uid="C1.Schedule.Printing.PrintStyleCollection.InsertItem(System.Int32,C1.Schedule.Printing.PrintStyle)">
          <a class="xref" href="C1.Schedule.Printing.PrintStyleCollection.InsertItem.html#C1_Schedule_Printing_PrintStyleCollection_InsertItem_System_Int32_C1_Schedule_Printing_PrintStyle_">InsertItem(int, PrintStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts the specified item in the collection at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_Printing_PrintStyleCollection_LoadDefaults" data-uid="C1.Schedule.Printing.PrintStyleCollection.LoadDefaults">
          <a class="xref" href="C1.Schedule.Printing.PrintStyleCollection.LoadDefaults.html#C1_Schedule_Printing_PrintStyleCollection_LoadDefaults">LoadDefaults()</a>
        </td>
        <td class="markdown level1 summary"><p>Fills collection with default printing styles.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
