# C1.Util.Font.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_Font_Create_" data-uid="C1.Util.Font.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_Font_Create_" data-uid="C1.Util.Font.Create*"></a>
<h4 id="C1_Util_Font_Create_GrapeCity_Documents_Text_Font_System_Single_C1_Util_FontStyle_" data-uid="C1.Util.Font.Create(GrapeCity.Documents.Text.Font,System.Single,C1.Util.FontStyle)">Create(Font, float, FontStyle)</h4>
<div class="markdown level1 summary"><p>Create font using document font with real data.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Font Create(Font font, float sizeInPoints, FontStyle style = FontStyle.Regular)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(font As Font, sizeInPoints As Single, Optional style As FontStyle = FontStyle.Regular) 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><span class="xref">Font</span></td>
      <td><span class="parametername">font</span></td>
      <td><p>The document font with real data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">sizeInPoints</span></td>
      <td><p>The font size in points.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.FontStyle.html">FontStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>Font style attributes.</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.Util.Font.html">Font</a></td>
      <td><p>The font object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_Font_Create_" data-uid="C1.Util.Font.Create*"></a>
<h4 id="C1_Util_Font_Create_System_String_System_Single_C1_Util_FontStyle_" data-uid="C1.Util.Font.Create(System.String,System.Single,C1.Util.FontStyle)">Create(string, float, FontStyle)</h4>
<div class="markdown level1 summary"><p>Create font using document font with real data.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Font Create(string fontName, float sizeInPoints, FontStyle style = FontStyle.Regular)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(fontName As String, sizeInPoints As Single, Optional style As FontStyle = FontStyle.Regular) 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">fontName</span></td>
      <td><p>The document font with real data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">sizeInPoints</span></td>
      <td><p>The font size in points.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.FontStyle.html">FontStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>Font style attributes.</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.Util.Font.html">Font</a></td>
      <td><p>The font object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_Font_Create_" data-uid="C1.Util.Font.Create*"></a>
<h4 id="C1_Util_Font_Create_C1_Excel_XLFont_" data-uid="C1.Util.Font.Create(C1.Excel.XLFont)">Create(XLFont)</h4>
<div class="markdown level1 summary"><p>Create font using document font with real data.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Font Create(XLFont xlf)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(xlf As XLFont) 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><span class="xref">XLFont</span></td>
      <td><span class="parametername">xlf</span></td>
      <td><p>The <span class="xref">C1.Excel.XLFont</span> object.</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.Util.Font.html">Font</a></td>
      <td><p>The font object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
