# GrapeCity.Documents.Word.FontInfoCollection.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_FontInfoCollection_Add_" data-uid="GrapeCity.Documents.Word.FontInfoCollection.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_FontInfoCollection_Add_" data-uid="GrapeCity.Documents.Word.FontInfoCollection.Add*"></a>
<h4 id="GrapeCity_Documents_Word_FontInfoCollection_Add_System_String_" data-uid="GrapeCity.Documents.Word.FontInfoCollection.Add(System.String)">Add(string)</h4>
<div class="markdown level1 summary"><p>Adds a font with a specified primary name to the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FontInfo Add(string name)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(name As String) As FontInfo</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>The primary name of the font to add.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.FontInfo.html">FontInfo</a></td>
      <td><p>The newly created <a class="xref" href="GrapeCity.Documents.Word.FontInfo.html">FontInfo</a> instance.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_FontInfoCollection_Add_" data-uid="GrapeCity.Documents.Word.FontInfoCollection.Add*"></a>
<h4 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)">Add(Font, bool)</h4>
<div class="markdown level1 summary"><p>Adds a new font into the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FontInfo Add(Font font, bool embed = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(font As Font, Optional embed As Boolean = False) As FontInfo</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">Font</span></td>
      <td><span class="parametername">font</span></td>
      <td><p>The <span class="xref">GrapeCity.Documents.Text.Font</span> to add.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">embed</span></td>
      <td><p>Whether to embed the specified font.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.FontInfo.html">FontInfo</a></td>
      <td><p>A newly created <a class="xref" href="GrapeCity.Documents.Word.FontInfo.html">FontInfo</a> if <code class="paramref">embed</code> is false, otherwise it can be existing <a class="xref" href="GrapeCity.Documents.Word.FontInfo.html">FontInfo</a> that now contains the embedded font.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
