# C1.Framework.Drawing.Gdi.Font

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_Drawing_Gdi_Font" data-uid="C1.Framework.Drawing.Gdi.Font" class="text-break">Font Class
</h1>
  <div class="markdown level0 summary"><p>Represents a GDI font object.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="C1.Framework.Drawing.Gdi.GdiObject.html">GdiObject</a></div>
    <div class="level3"><span class="xref">Font</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.Drawing.Gdi.html">C1.Framework.Drawing.Gdi</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Input.4.8.dll</h6>
  <h5 id="C1_Framework_Drawing_Gdi_Font_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class Font : GdiObject, IDisposable, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class Font
    Inherits GdiObject
    Implements IDisposable, ICloneable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font__ctor_C1_Framework_Drawing_Gdi_Font_System_Drawing_FontStyle_" data-uid="C1.Framework.Drawing.Gdi.Font.#ctor(C1.Framework.Drawing.Gdi.Font,System.Drawing.FontStyle)">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.-ctor.html#C1_Framework_Drawing_Gdi_Font__ctor_C1_Framework_Drawing_Gdi_Font_System_Drawing_FontStyle_">Font(Font, FontStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new <a class="xref" href="C1.Framework.Drawing.Gdi.Font.html">Font</a> object from the specified <b>Font</b> object and special style</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font__ctor_C1_Framework_Drawing_Gdi_Font_System_Single_" data-uid="C1.Framework.Drawing.Gdi.Font.#ctor(C1.Framework.Drawing.Gdi.Font,System.Single)">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.-ctor.html#C1_Framework_Drawing_Gdi_Font__ctor_C1_Framework_Drawing_Gdi_Font_System_Single_">Font(Font, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new <a class="xref" href="C1.Framework.Drawing.Gdi.Font.html">Font</a> object from the specified <b>Font</b> object and special style</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font__ctor_System_String_System_Single_" data-uid="C1.Framework.Drawing.Gdi.Font.#ctor(System.String,System.Single)">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.-ctor.html#C1_Framework_Drawing_Gdi_Font__ctor_System_String_System_Single_">Font(string, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new <a class="xref" href="C1.Framework.Drawing.Gdi.Font.html">Font</a> object using the specified font attributes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font__ctor_System_String_System_Single_System_Drawing_FontStyle_System_Byte_" data-uid="C1.Framework.Drawing.Gdi.Font.#ctor(System.String,System.Single,System.Drawing.FontStyle,System.Byte)">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.-ctor.html#C1_Framework_Drawing_Gdi_Font__ctor_System_String_System_Single_System_Drawing_FontStyle_System_Byte_">Font(string, float, FontStyle, byte)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new <a class="xref" href="C1.Framework.Drawing.Gdi.Font.html">Font</a> object using the specified settings.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font_Bold" data-uid="C1.Framework.Drawing.Gdi.Font.Bold">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.Bold.html#C1_Framework_Drawing_Gdi_Font_Bold">Bold</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether this <b>Font</b> object is bold.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font_CharSet" data-uid="C1.Framework.Drawing.Gdi.Font.CharSet">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.CharSet.html#C1_Framework_Drawing_Gdi_Font_CharSet">CharSet</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a byte value that specifies the character set that this <b>Font</b> object uses.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font_ControlDefault" data-uid="C1.Framework.Drawing.Gdi.Font.ControlDefault">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.ControlDefault.html#C1_Framework_Drawing_Gdi_Font_ControlDefault">ControlDefault</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the default <a class="xref" href="C1.Framework.Drawing.Gdi.Font.html">Font</a> of the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font_Height" data-uid="C1.Framework.Drawing.Gdi.Font.Height">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.Height.html#C1_Framework_Drawing_Gdi_Font_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the height of this <b>Font</b> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font_Italic" data-uid="C1.Framework.Drawing.Gdi.Font.Italic">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.Italic.html#C1_Framework_Drawing_Gdi_Font_Italic">Italic</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether this <b>Font</b>
object is italic.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font_Metric" data-uid="C1.Framework.Drawing.Gdi.Font.Metric">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.Metric.html#C1_Framework_Drawing_Gdi_Font_Metric">Metric</a>
        </td>
        <td class="markdown level1 summary"><p>Gets basic information about this font. All sizes are specified in pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font_Name" data-uid="C1.Framework.Drawing.Gdi.Font.Name">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.Name.html#C1_Framework_Drawing_Gdi_Font_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the face name of this <a class="xref" href="C1.Framework.Drawing.Gdi.Font.html">Font</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font_Size" data-uid="C1.Framework.Drawing.Gdi.Font.Size">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.Size.html#C1_Framework_Drawing_Gdi_Font_Size">Size</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the size, in points, of this <b>Font</b> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font_Strikeout" data-uid="C1.Framework.Drawing.Gdi.Font.Strikeout">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.Strikeout.html#C1_Framework_Drawing_Gdi_Font_Strikeout">Strikeout</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether this <b>Font</b> object
specifies a horizontal line through the font.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font_Style" data-uid="C1.Framework.Drawing.Gdi.Font.Style">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.Style.html#C1_Framework_Drawing_Gdi_Font_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets style information for this <a class="xref" href="C1.Framework.Drawing.Gdi.Font.html">Font</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font_Underline" data-uid="C1.Framework.Drawing.Gdi.Font.Underline">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.Underline.html#C1_Framework_Drawing_Gdi_Font_Underline">Underline</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether this <b>Font</b>
object is underlined.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font_Clone" data-uid="C1.Framework.Drawing.Gdi.Font.Clone">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.Clone.html#C1_Framework_Drawing_Gdi_Font_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an exact copy of this <a class="xref" href="C1.Framework.Drawing.Gdi.Font.html">Font</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font_FromGdiplusFont_System_Drawing_Font_" data-uid="C1.Framework.Drawing.Gdi.Font.FromGdiplusFont(System.Drawing.Font)">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.FromGdiplusFont.html#C1_Framework_Drawing_Gdi_Font_FromGdiplusFont_System_Drawing_Font_">FromGdiplusFont(Font)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.Framework.Drawing.Gdi.Font.html">Font</a> object from the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Drawing_Gdi_Font_ToGdiplusFont_C1_Framework_Drawing_Gdi_Font_" data-uid="C1.Framework.Drawing.Gdi.Font.ToGdiplusFont(C1.Framework.Drawing.Gdi.Font)">
          <a class="xref" href="C1.Framework.Drawing.Gdi.Font.ToGdiplusFont.html#C1_Framework_Drawing_Gdi_Font_ToGdiplusFont_C1_Framework_Drawing_Gdi_Font_">ToGdiplusFont(Font)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a GDI+ .NET <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a> object from this object instance.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
