# C1.Report.FontDataCollection.FindFont

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Report_FontDataCollection_FindFont_" data-uid="C1.Report.FontDataCollection.FindFont*">FindFont Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Report_FontDataCollection_FindFont_" data-uid="C1.Report.FontDataCollection.FindFont*"></a>
<h4 id="C1_Report_FontDataCollection_FindFont_System_String_System_Boolean_System_Boolean_" data-uid="C1.Report.FontDataCollection.FindFont(System.String,System.Boolean,System.Boolean)">FindFont(string, bool, bool)</h4>
<div class="markdown level1 summary"><p>Gets a section from a font data collection by the font name and characteristics.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FontData FindFont(string fontName, bool bold, bool italic)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FindFont(fontName As String, bold As Boolean, italic As Boolean) As FontData</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">fontName</span></td>
      <td><p>The font 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>The bold font characteristic.</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>The italic font characteristic.</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="C1.Report.FontData.html">FontData</a></td>
      <td><p>Returns <b>null</b> if section not found.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Report_FontDataCollection_FindFont_" data-uid="C1.Report.FontDataCollection.FindFont*"></a>
<h4 id="C1_Report_FontDataCollection_FindFont_C1_Util_Font_System_Boolean_" data-uid="C1.Report.FontDataCollection.FindFont(C1.Util.Font,System.Boolean)">FindFont(Font, bool)</h4>
<div class="markdown level1 summary"><p>Gets a section from a font data collection by the font.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[CLSCompliant(false)]
public FontData FindFont(Font font, bool strictly = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Function FindFont(font As Font, Optional strictly As Boolean = False) As FontData</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 font object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">strictly</span></td>
      <td><p>Whether strictly compare or no.</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="C1.Report.FontData.html">FontData</a></td>
      <td><p>Returns <b>null</b> if section not found.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
