# C1.C1Preview.DocumentFontCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_DocumentFontCollection" data-uid="C1.C1Preview.DocumentFontCollection" class="text-break">DocumentFontCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents the collection of <a class="xref" href="C1.C1Preview.DocumentFont.html">DocumentFont</a> objects
describing fonts used in a <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a>.</p>
<p>
See <a class="xref" href="C1.C1Preview.C1PrintDocument.FontHandling.html#C1_C1Preview_C1PrintDocument_FontHandling">FontHandling</a> for details on
when and how this collection is populated.
</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"><a class="xref" href="C1.C1Preview.OwnedCollection.html">OwnedCollection</a></div>
    <div class="level4"><span class="xref">DocumentFontCollection</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.WPF.PrintDocument.4.6.2.dll</h6>
  <h5 id="C1_C1Preview_DocumentFontCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DocumentFontCollection : OwnedCollection, IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DocumentFontCollection
    Inherits OwnedCollection
    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_DocumentFontCollection_Item_System_Int32_" data-uid="C1.C1Preview.DocumentFontCollection.Item(System.Int32)">
          <a class="xref" href="C1.C1Preview.DocumentFontCollection.Item.html#C1_C1Preview_DocumentFontCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="C1.C1Preview.DocumentFont.html">DocumentFont</a> in the current collection by its index.</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_DocumentFontCollection_FindByFamilyName_System_String_System_Boolean_System_Boolean_" data-uid="C1.C1Preview.DocumentFontCollection.FindByFamilyName(System.String,System.Boolean,System.Boolean)">
          <a class="xref" href="C1.C1Preview.DocumentFontCollection.FindByFamilyName.html#C1_C1Preview_DocumentFontCollection_FindByFamilyName_System_String_System_Boolean_System_Boolean_">FindByFamilyName(string, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Finds a font in the current collection with the specified values
of <a class="xref" href="C1.C1Preview.DocumentFont.FontFamilyName.html#C1_C1Preview_DocumentFont_FontFamilyName">FontFamilyName</a>, <a class="xref" href="C1.C1Preview.DocumentFont.Bold.html#C1_C1Preview_DocumentFont_Bold">Bold</a>
and <a class="xref" href="C1.C1Preview.DocumentFont.Italic.html#C1_C1Preview_DocumentFont_Italic">Italic</a> properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DocumentFontCollection_FindByName_System_String_System_Boolean_System_Boolean_" data-uid="C1.C1Preview.DocumentFontCollection.FindByName(System.String,System.Boolean,System.Boolean)">
          <a class="xref" href="C1.C1Preview.DocumentFontCollection.FindByName.html#C1_C1Preview_DocumentFontCollection_FindByName_System_String_System_Boolean_System_Boolean_">FindByName(string, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Finds a font in the current collection with the specified values
of <a class="xref" href="C1.C1Preview.DocumentFont.FontName.html#C1_C1Preview_DocumentFont_FontName">FontName</a>, <a class="xref" href="C1.C1Preview.DocumentFont.Bold.html#C1_C1Preview_DocumentFont_Bold">Bold</a>
and <a class="xref" href="C1.C1Preview.DocumentFont.Italic.html#C1_C1Preview_DocumentFont_Italic">Italic</a> properties.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
