# GrapeCity.Documents.Word.FontInfoCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_FontInfoCollection" data-uid="GrapeCity.Documents.Word.FontInfoCollection" class="text-break">FontInfoCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="GrapeCity.Documents.Word.FontInfo.html">FontInfo</a> objects.</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"><span class="xref">FontInfoCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.FontInfo.html">FontInfo</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="GrapeCity.Documents.Word.FontInfo.html">FontInfo</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="GrapeCity.Documents.Word.html">GrapeCity.Documents.Word</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_FontInfoCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class FontInfoCollection : IReadOnlyCollection&lt;FontInfo&gt;, IEnumerable&lt;FontInfo&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class FontInfoCollection
    Implements IReadOnlyCollection(Of FontInfo), IEnumerable(Of FontInfo), 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="GrapeCity_Documents_Word_FontInfoCollection_Count" data-uid="GrapeCity.Documents.Word.FontInfoCollection.Count">
          <a class="xref" href="GrapeCity.Documents.Word.FontInfoCollection.Count.html#GrapeCity_Documents_Word_FontInfoCollection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_FontInfoCollection_Document" data-uid="GrapeCity.Documents.Word.FontInfoCollection.Document">
          <a class="xref" href="GrapeCity.Documents.Word.FontInfoCollection.Document.html#GrapeCity_Documents_Word_FontInfoCollection_Document">Document</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the document that contains this collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_FontInfoCollection_IsReadOnly" data-uid="GrapeCity.Documents.Word.FontInfoCollection.IsReadOnly">
          <a class="xref" href="GrapeCity.Documents.Word.FontInfoCollection.IsReadOnly.html#GrapeCity_Documents_Word_FontInfoCollection_IsReadOnly">IsReadOnly</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the containing document is in reading mode.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_FontInfoCollection_Item_System_Int32_" data-uid="GrapeCity.Documents.Word.FontInfoCollection.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Word.FontInfoCollection.Item.html#GrapeCity_Documents_Word_FontInfoCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a font by its index in this collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_FontInfoCollection_Item_System_String_" data-uid="GrapeCity.Documents.Word.FontInfoCollection.Item(System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.FontInfoCollection.Item.html#GrapeCity_Documents_Word_FontInfoCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a font by its primary name.</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="GrapeCity_Documents_Word_FontInfoCollection_Add_GrapeCity_Documents_Text_Font_System_Boolean_" data-uid="GrapeCity.Documents.Word.FontInfoCollection.Add(GrapeCity.Documents.Text.Font,System.Boolean)">
          <a class="xref" href="GrapeCity.Documents.Word.FontInfoCollection.Add.html#GrapeCity_Documents_Word_FontInfoCollection_Add_GrapeCity_Documents_Text_Font_System_Boolean_">Add(Font, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new font into the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_FontInfoCollection_Add_System_String_" data-uid="GrapeCity.Documents.Word.FontInfoCollection.Add(System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.FontInfoCollection.Add.html#GrapeCity_Documents_Word_FontInfoCollection_Add_System_String_">Add(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a font with a specified primary name to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_FontInfoCollection_Append_System_Collections_Generic_IList_GrapeCity_Documents_Text_Font__System_Boolean_" data-uid="GrapeCity.Documents.Word.FontInfoCollection.Append(System.Collections.Generic.IList{GrapeCity.Documents.Text.Font},System.Boolean)">
          <a class="xref" href="GrapeCity.Documents.Word.FontInfoCollection.Append.html#GrapeCity_Documents_Word_FontInfoCollection_Append_System_Collections_Generic_IList_GrapeCity_Documents_Text_Font__System_Boolean_">Append(IList&lt;Font&gt;, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Appends a list of <span class="xref">GrapeCity.Documents.Text.Font</span> objects to the collection.
Fonts that already exist in the collection are ignored.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_FontInfoCollection_Clear" data-uid="GrapeCity.Documents.Word.FontInfoCollection.Clear">
          <a class="xref" href="GrapeCity.Documents.Word.FontInfoCollection.Clear.html#GrapeCity_Documents_Word_FontInfoCollection_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all fonts from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_FontInfoCollection_Contains_System_String_" data-uid="GrapeCity.Documents.Word.FontInfoCollection.Contains(System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.FontInfoCollection.Contains.html#GrapeCity_Documents_Word_FontInfoCollection_Contains_System_String_">Contains(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether the collection contains a font with the specified primary name.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_FontInfoCollection_Find_System_String_" data-uid="GrapeCity.Documents.Word.FontInfoCollection.Find(System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.FontInfoCollection.Find.html#GrapeCity_Documents_Word_FontInfoCollection_Find_System_String_">Find(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Finds a <a class="xref" href="GrapeCity.Documents.Word.FontInfo.html">FontInfo</a> in this collection by its primary or alternate name.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_FontInfoCollection_GetEnumerator" data-uid="GrapeCity.Documents.Word.FontInfoCollection.GetEnumerator">
          <a class="xref" href="GrapeCity.Documents.Word.FontInfoCollection.GetEnumerator.html#GrapeCity_Documents_Word_FontInfoCollection_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_FontInfoCollection_Remove_GrapeCity_Documents_Word_FontInfo_" data-uid="GrapeCity.Documents.Word.FontInfoCollection.Remove(GrapeCity.Documents.Word.FontInfo)">
          <a class="xref" href="GrapeCity.Documents.Word.FontInfoCollection.Remove.html#GrapeCity_Documents_Word_FontInfoCollection_Remove_GrapeCity_Documents_Word_FontInfo_">Remove(FontInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a specified font from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_FontInfoCollection_Remove_System_String_" data-uid="GrapeCity.Documents.Word.FontInfoCollection.Remove(System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.FontInfoCollection.Remove.html#GrapeCity_Documents_Word_FontInfoCollection_Remove_System_String_">Remove(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a font with the specified primary name from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_FontInfoCollection_TryGetValue_System_String_GrapeCity_Documents_Word_FontInfo__" data-uid="GrapeCity.Documents.Word.FontInfoCollection.TryGetValue(System.String,GrapeCity.Documents.Word.FontInfo@)">
          <a class="xref" href="GrapeCity.Documents.Word.FontInfoCollection.TryGetValue.html#GrapeCity_Documents_Word_FontInfoCollection_TryGetValue_System_String_GrapeCity_Documents_Word_FontInfo__">TryGetValue(string, out FontInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Tries to get a font from the collection by its primary name.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
