# C1.Document.StyleCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Document_StyleCollection" data-uid="C1.Document.StyleCollection" class="text-break">StyleCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <span class="xref">C1.Document.Style</span> objects.
This is the type of the <span class="xref">C1.Document.Style.Children</span> collection
on a <span class="xref">C1.Document.Style</span>.</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;<span class="xref">Style</span>&gt;</div>
    <div class="level2"><span class="xref">OwnedCollectionBase</span>&lt;<span class="xref">Style</span>&gt;</div>
    <div class="level3"><span class="xref">OwnedCollection</span>&lt;<span class="xref">Style</span>&gt;</div>
    <div class="level4"><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.generic.ilist-1">IList</a>&lt;<span class="xref">Style</span>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<span class="xref">Style</span>&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;<span class="xref">Style</span>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<span class="xref">Style</span>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<span class="xref">Style</span>&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.Document.html">C1.Document</a></h6>
  <h6><strong>Assembly</strong>: C1.Document.dll</h6>
  <h5 id="C1_Document_StyleCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class StyleCollection : OwnedCollection&lt;Style&gt;, IList&lt;Style&gt;, ICollection&lt;Style&gt;, IList, ICollection, IReadOnlyList&lt;Style&gt;, IReadOnlyCollection&lt;Style&gt;, IEnumerable&lt;Style&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class StyleCollection
    Inherits OwnedCollection(Of Style)
    Implements IList(Of Style), ICollection(Of Style), IList, ICollection, IReadOnlyList(Of Style), IReadOnlyCollection(Of Style), IEnumerable(Of Style), 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_Document_StyleCollection__ctor" data-uid="C1.Document.StyleCollection.#ctor">
          <a class="xref" href="C1.Document.StyleCollection.-ctor.html#C1_Document_StyleCollection__ctor">StyleCollection()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <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_Document_StyleCollection_Owner" data-uid="C1.Document.StyleCollection.Owner">
          <a class="xref" href="C1.Document.StyleCollection.Owner.html#C1_Document_StyleCollection_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets <span class="xref">C1.Document.Style</span> object owning this collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
