# C1.Document.Util.C1HtmlGraphics.DrawRtf

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Document_Util_C1HtmlGraphics_DrawRtf_" data-uid="C1.Document.Util.C1HtmlGraphics.DrawRtf*">DrawRtf Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Document_Util_C1HtmlGraphics_DrawRtf_" data-uid="C1.Document.Util.C1HtmlGraphics.DrawRtf*"></a>
<h4 id="C1_Document_Util_C1HtmlGraphics_DrawRtf_System_Object_System_String_System_Int32_System_Int32_C1_Interop_Rect_System_Boolean_System_Drawing_Color_" data-uid="C1.Document.Util.C1HtmlGraphics.DrawRtf(System.Object,System.String,System.Int32,System.Int32,C1.Interop.Rect,System.Boolean,System.Drawing.Color)">DrawRtf(object, string, int, int, Rect, bool, Color)</h4>
<div class="markdown level1 summary"><p>Draws the RTF text.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override void DrawRtf(object measurementGraphics, string rtf, int firstCharIndex, int length, Rect bounds, bool detectUrls, Color backColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Sub DrawRtf(measurementGraphics As Object, rtf As String, firstCharIndex As Integer, length As Integer, bounds As Rect, detectUrls As Boolean, backColor As Color)</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.object">object</a></td>
      <td><span class="parametername">measurementGraphics</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">rtf</span></td>
      <td><p>The RTF text.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">firstCharIndex</span></td>
      <td><p>The index of first character.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">length</span></td>
      <td><p>The total number of characters.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Interop.Rect.html">Rect</a></td>
      <td><span class="parametername">bounds</span></td>
      <td><p>The rectangle bounds.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">detectUrls</span></td>
      <td><p>A value indicating whether or not the C1RichText will automatically format a Uniform Resource Locator (URL).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">backColor</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">C1ExportGraphicsBase.DrawRtf(object, string, int, int, Rect, bool, Color)</a></div>
</div>
