# GrapeCity.Documents.Text.FontCollection.FindFamilyName

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Text_FontCollection_FindFamilyName_" data-uid="GrapeCity.Documents.Text.FontCollection.FindFamilyName*">FindFamilyName Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Text_FontCollection_FindFamilyName_" data-uid="GrapeCity.Documents.Text.FontCollection.FindFamilyName*"></a>
<h4 id="GrapeCity_Documents_Text_FontCollection_FindFamilyName_System_String_System_Boolean_System_Boolean_" data-uid="GrapeCity.Documents.Text.FontCollection.FindFamilyName(System.String,System.Boolean,System.Boolean)">FindFamilyName(string, bool, bool)</h4>
<div class="markdown level1 summary"><p>Searches for a font with the specified family name and style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Font FindFamilyName(string fontFamilyName, bool bold = false, bool italic = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FindFamilyName(fontFamilyName As String, Optional bold As Boolean = False, Optional italic As Boolean = False) As Font</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">fontFamilyName</span></td>
      <td><p>The font family name. Up to four fonts can share the same font family name.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bold</span></td>
      <td><p>Indicates whether the font should be bold.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">italic</span></td>
      <td><p>Indicates whether the font should contain Italic characters.</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.Text.Font.html">Font</a></td>
      <td><p>The corresponding <a class="xref" href="GrapeCity.Documents.Text.Font.html">Font</a> or null.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="GrapeCity.Documents.Text.IFontCollection.FindFamilyName.html#GrapeCity_Documents_Text_IFontCollection_FindFamilyName_System_String_System_Boolean_System_Boolean_">IFontCollection.FindFamilyName(string, bool, bool)</a></div>


<a id="GrapeCity_Documents_Text_FontCollection_FindFamilyName_" data-uid="GrapeCity.Documents.Text.FontCollection.FindFamilyName*"></a>
<h4 id="GrapeCity_Documents_Text_FontCollection_FindFamilyName_System_String___System_Boolean_System_Boolean_" data-uid="GrapeCity.Documents.Text.FontCollection.FindFamilyName(System.String[],System.Boolean,System.Boolean)">FindFamilyName(string[], bool, bool)</h4>
<div class="markdown level1 summary"><p>Searches for a font from the set of allowable font family names and the specified style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Font FindFamilyName(string[] fontFamilyNames, bool bold = false, bool italic = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FindFamilyName(fontFamilyNames As String(), Optional bold As Boolean = False, Optional italic As Boolean = False) As Font</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">fontFamilyNames</span></td>
      <td><p>The array of allowable font family name.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bold</span></td>
      <td><p>Indicates if the font should be bold.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">italic</span></td>
      <td><p>Indicates if the font should contain Italic characters.</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.Text.Font.html">Font</a></td>
      <td><p>The corresponding <a class="xref" href="GrapeCity.Documents.Text.Font.html">Font</a> or null.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="GrapeCity.Documents.Text.IFontCollection.FindFamilyName.html#GrapeCity_Documents_Text_IFontCollection_FindFamilyName_System_String___System_Boolean_System_Boolean_">IFontCollection.FindFamilyName(string[], bool, bool)</a></div>
</div>
