# C1.Maui.Core.C1Font.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Maui_Core_C1Font_Create_" data-uid="C1.Maui.Core.C1Font.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Maui_Core_C1Font_Create_" data-uid="C1.Maui.Core.C1Font.Create*"></a>
<h4 id="C1_Maui_Core_C1Font_Create_System_Nullable_System_Double__System_String_System_Nullable_System_Boolean__System_Nullable_System_Boolean__" data-uid="C1.Maui.Core.C1Font.Create(System.Nullable{System.Double},System.String,System.Nullable{System.Boolean},System.Nullable{System.Boolean})">Create(double?, string, bool?, bool?)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static C1Font Create(double? fontSize = null, string fontFamily = null, bool? isBold = null, bool? isItalic = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(Optional fontSize As Double? = Nothing, Optional fontFamily As String = Nothing, Optional isBold As Boolean? = Nothing, Optional isItalic As Boolean? = Nothing) As C1Font</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.double">double</a>?</td>
      <td><span class="parametername">fontSize</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">fontFamily</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>?</td>
      <td><span class="parametername">isBold</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>?</td>
      <td><span class="parametername">isItalic</span></td>
      <td></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.Maui.Core.C1Font.html">C1Font</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Maui_Core_C1Font_Create_" data-uid="C1.Maui.Core.C1Font.Create*"></a>
<h4 id="C1_Maui_Core_C1Font_Create_System_Func_System_Double__System_Func_System_String__System_Func_System_Nullable_System_Boolean___System_Func_System_Nullable_System_Boolean___" data-uid="C1.Maui.Core.C1Font.Create(System.Func{System.Double},System.Func{System.String},System.Func{System.Nullable{System.Boolean}},System.Func{System.Nullable{System.Boolean}})">Create(Func&lt;double&gt;, Func&lt;string&gt;, Func&lt;bool?&gt;, Func&lt;bool?&gt;)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static C1Font Create(Func&lt;double&gt; getFontSize = null, Func&lt;string&gt; getFontFamily = null, Func&lt;bool?&gt; getIsBold = null, Func&lt;bool?&gt; getIsItalic = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(Optional getFontSize As Func(Of Double) = Nothing, Optional getFontFamily As Func(Of String) = Nothing, Optional getIsBold As Func(Of Boolean?) = Nothing, Optional getIsItalic As Func(Of Boolean?) = Nothing) As C1Font</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.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</td>
      <td><span class="parametername">getFontSize</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</td>
      <td><span class="parametername">getFontFamily</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>?&gt;</td>
      <td><span class="parametername">getIsBold</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>?&gt;</td>
      <td><span class="parametername">getIsItalic</span></td>
      <td></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.Maui.Core.C1Font.html">C1Font</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
