# C1.C1Preview.EmbeddedFontCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_EmbeddedFontCollection" data-uid="C1.C1Preview.EmbeddedFontCollection" class="text-break">EmbeddedFontCollection Class
</h1>
  <div class="markdown level0 summary"></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"><span class="xref">EmbeddedFontCollection</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_EmbeddedFontCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class EmbeddedFontCollection : CollectionBase, IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class EmbeddedFontCollection
    Inherits CollectionBase
    Implements IList, ICollection, 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_C1Preview_EmbeddedFontCollection__ctor" data-uid="C1.C1Preview.EmbeddedFontCollection.#ctor">
          <a class="xref" href="C1.C1Preview.EmbeddedFontCollection.-ctor.html#C1_C1Preview_EmbeddedFontCollection__ctor">EmbeddedFontCollection()</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_C1Preview_EmbeddedFontCollection_Item_System_Int32_" data-uid="C1.C1Preview.EmbeddedFontCollection.Item(System.Int32)">
          <a class="xref" href="C1.C1Preview.EmbeddedFontCollection.Item.html#C1_C1Preview_EmbeddedFontCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.EmbeddedFont.html">EmbeddedFont</a> at the specified 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_EmbeddedFontCollection_Add_C1_C1Preview_EmbeddedFont_" data-uid="C1.C1Preview.EmbeddedFontCollection.Add(C1.C1Preview.EmbeddedFont)">
          <a class="xref" href="C1.C1Preview.EmbeddedFontCollection.Add.html#C1_C1Preview_EmbeddedFontCollection_Add_C1_C1Preview_EmbeddedFont_">Add(EmbeddedFont)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the specified <a class="xref" href="C1.C1Preview.EmbeddedFont.html">EmbeddedFont</a> to the current collection.
Throws an exception if the font is already present in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFontCollection_Add_System_Drawing_Font_" data-uid="C1.C1Preview.EmbeddedFontCollection.Add(System.Drawing.Font)">
          <a class="xref" href="C1.C1Preview.EmbeddedFontCollection.Add.html#C1_C1Preview_EmbeddedFontCollection_Add_System_Drawing_Font_">Add(Font)</a>
        </td>
        <td class="markdown level1 summary"><p>Builds an <a class="xref" href="C1.C1Preview.EmbeddedFont.html">EmbeddedFont</a> based on the specified font, and adds it to the current collection.
Throws an exception if the font is already present in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFontCollection_BuildFont_System_String_System_ComponentModel_ITypeDescriptorContext_System_Globalization_CultureInfo_" data-uid="C1.C1Preview.EmbeddedFontCollection.BuildFont(System.String,System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo)">
          <a class="xref" href="C1.C1Preview.EmbeddedFontCollection.BuildFont.html#C1_C1Preview_EmbeddedFontCollection_BuildFont_System_String_System_ComponentModel_ITypeDescriptorContext_System_Globalization_CultureInfo_">BuildFont(string, ITypeDescriptorContext, CultureInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the Font object from string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFontCollection_FindBestMatch_System_String_System_Int32_System_Drawing_FontStyle_" data-uid="C1.C1Preview.EmbeddedFontCollection.FindBestMatch(System.String,System.Int32,System.Drawing.FontStyle)">
          <a class="xref" href="C1.C1Preview.EmbeddedFontCollection.FindBestMatch.html#C1_C1Preview_EmbeddedFontCollection_FindBestMatch_System_String_System_Int32_System_Drawing_FontStyle_">FindBestMatch(string, int, FontStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for a font with the specified name and charset,
which is the best match for the specified bold/italic styles
(exact bold/italic matching is not guaranteed by this method).</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFontCollection_FindFont_System_String_System_Int32_System_Boolean_System_Boolean_" data-uid="C1.C1Preview.EmbeddedFontCollection.FindFont(System.String,System.Int32,System.Boolean,System.Boolean)">
          <a class="xref" href="C1.C1Preview.EmbeddedFontCollection.FindFont.html#C1_C1Preview_EmbeddedFontCollection_FindFont_System_String_System_Int32_System_Boolean_System_Boolean_">FindFont(string, int, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for a font with the specified name and charset,
which exactly matches the specified bold/italic styles.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFontCollection_FindFont_System_String_System_Int32_System_Drawing_FontStyle_" data-uid="C1.C1Preview.EmbeddedFontCollection.FindFont(System.String,System.Int32,System.Drawing.FontStyle)">
          <a class="xref" href="C1.C1Preview.EmbeddedFontCollection.FindFont.html#C1_C1Preview_EmbeddedFontCollection_FindFont_System_String_System_Int32_System_Drawing_FontStyle_">FindFont(string, int, FontStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for a font with the specified name and charset,
which exactly matches the specified bold/italic styles.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFontCollection_IndexOf_C1_C1Preview_EmbeddedFont_" data-uid="C1.C1Preview.EmbeddedFontCollection.IndexOf(C1.C1Preview.EmbeddedFont)">
          <a class="xref" href="C1.C1Preview.EmbeddedFontCollection.IndexOf.html#C1_C1Preview_EmbeddedFontCollection_IndexOf_C1_C1Preview_EmbeddedFont_">IndexOf(EmbeddedFont)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the index of the specified font in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_EmbeddedFontCollection_Remove_C1_C1Preview_EmbeddedFont_" data-uid="C1.C1Preview.EmbeddedFontCollection.Remove(C1.C1Preview.EmbeddedFont)">
          <a class="xref" href="C1.C1Preview.EmbeddedFontCollection.Remove.html#C1_C1Preview_EmbeddedFontCollection_Remove_C1_C1Preview_EmbeddedFont_">Remove(EmbeddedFont)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the specified font from the current collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
