# C1.Document.Util.C1HtmlGraphics.DrawText

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Document_Util_C1HtmlGraphics_DrawText_" data-uid="C1.Document.Util.C1HtmlGraphics.DrawText*">DrawText Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Document_Util_C1HtmlGraphics_DrawText_" data-uid="C1.Document.Util.C1HtmlGraphics.DrawText*"></a>
<h4 id="C1_Document_Util_C1HtmlGraphics_DrawText_C1_Interop_Point_System_String_System_String_System_Single_C1_Document_C1FontWeight_C1_Document_C1FontStretch_System_Boolean_C1_Document_C1TextDecoration_System_Drawing_Color_System_Single___System_Byte___System_Boolean_System_Int32_System_Double_" data-uid="C1.Document.Util.C1HtmlGraphics.DrawText(C1.Interop.Point,System.String,System.String,System.Single,C1.Document.C1FontWeight,C1.Document.C1FontStretch,System.Boolean,C1.Document.C1TextDecoration,System.Drawing.Color,System.Single[],System.Byte[],System.Boolean,System.Int32,System.Double)">DrawText(Point, string, string, float, C1FontWeight, C1FontStretch, bool, C1TextDecoration, Color, float[], byte[], bool, int, double)</h4>
<div class="markdown level1 summary"><p>Draws text.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected void DrawText(Point pt, string text, string fontName, float fontSize, C1FontWeight weight, C1FontStretch stretch, bool italic, C1TextDecoration decor, Color color, float[] advances, byte[] panose, bool vertical, int bidiLevel, double offset)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub DrawText(pt As Point, text As String, fontName As String, fontSize As Single, weight As C1FontWeight, stretch As C1FontStretch, italic As Boolean, decor As C1TextDecoration, color As Color, advances As Single(), panose As Byte(), vertical As Boolean, bidiLevel As Integer, offset As Double)</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="C1.Interop.Point.html">Point</a></td>
      <td><span class="parametername">pt</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">text</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">fontName</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">fontSize</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">C1FontWeight</span></td>
      <td><span class="parametername">weight</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Document.C1FontStretch.html">C1FontStretch</a></td>
      <td><span class="parametername">stretch</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">italic</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">C1TextDecoration</span></td>
      <td><span class="parametername">decor</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a>[]</td>
      <td><span class="parametername">advances</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>[]</td>
      <td><span class="parametername">panose</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">vertical</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">bidiLevel</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">offset</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
