# C1.Win.Document.Util.C1DXExportGraphics.DrawText

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Document_Util_C1DXExportGraphics_DrawText_" data-uid="C1.Win.Document.Util.C1DXExportGraphics.DrawText*">DrawText Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Document_Util_C1DXExportGraphics_DrawText_" data-uid="C1.Win.Document.Util.C1DXExportGraphics.DrawText*"></a>
<h4 id="C1_Win_Document_Util_C1DXExportGraphics_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.Win.Document.Util.C1DXExportGraphics.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>Simple draw text run.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual 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 Overridable 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><span class="xref">Point</span></td>
      <td><span class="parametername">pt</span></td>
      <td><p>The start point for draw text.</p>
</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><p>The text run.</p>
</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><p>The font name as string.</p>
</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><p>The font size in points.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">C1FontWeight</span></td>
      <td><span class="parametername">weight</span></td>
      <td><p>The font weight, see <span class="xref">C1.Document.C1FontWeight</span>.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">C1FontStretch</span></td>
      <td><span class="parametername">stretch</span></td>
      <td><p>The font weight, see <span class="xref">C1.Document.C1FontStretch</span>.</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 flag.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">C1TextDecoration</span></td>
      <td><span class="parametername">decor</span></td>
      <td><p>The text docoration, see <span class="xref">C1.Document.C1TextDecoration</span>.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Color</span></td>
      <td><span class="parametername">color</span></td>
      <td><p>The text (foreground) color.</p>
</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><p>The advaces array, widths of each glyph in points.</p>
</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><p>The font panose (font identifier).</p>
</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><p>The vertical texts with hieroglyphs flag.</p>
</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><p>The right to left (bi-di) text level (0 - normal, 1 - rtl, 2 - inside rtl).</p>
</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><p>Text right bound offset, 0 by default</p>
</td>
    </tr>
  </tbody>
</table>
</div>
