# C1.C1Preview.StyleCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_StyleCollection" data-uid="C1.C1Preview.StyleCollection" class="text-break">StyleCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="C1.C1Preview.Style.html">Style</a> objects.
This is the type of the <a class="xref" href="C1.C1Preview.Style.Children.html#C1_C1Preview_Style_Children">Children</a> collection
on a <a class="xref" href="C1.C1Preview.Style.html">Style</a>.</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.collectionbase">CollectionBase</a></div>
    <div class="level2"><a class="xref" href="C1.C1Preview.OwnedCollectionBase.html">OwnedCollectionBase</a></div>
    <div class="level3"><span class="xref">StyleCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.PrintDocument.4.8.dll</h6>
  <h5 id="C1_C1Preview_StyleCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class StyleCollection : OwnedCollectionBase, IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class StyleCollection
    Inherits OwnedCollectionBase
    Implements 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_C1Preview_StyleCollection_Item_System_Int32_" data-uid="C1.C1Preview.StyleCollection.Item(System.Int32)">
          <a class="xref" href="C1.C1Preview.StyleCollection.Item.html#C1_C1Preview_StyleCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.Style.html">Style</a> object at the specified index in the current collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_StyleCollection_Owner" data-uid="C1.C1Preview.StyleCollection.Owner">
          <a class="xref" href="C1.C1Preview.StyleCollection.Owner.html#C1_C1Preview_StyleCollection_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets <a class="xref" href="C1.C1Preview.Style.html">Style</a> object owning this 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_C1Preview_StyleCollection_Add" data-uid="C1.C1Preview.StyleCollection.Add">
          <a class="xref" href="C1.C1Preview.StyleCollection.Add.html#C1_C1Preview_StyleCollection_Add">Add()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.C1Preview.Style.html">Style</a> object and adds it to the current collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
