# C1.WPF.Document.Util.C1GcPdfGraphics.DrawRtf

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Document_Util_C1GcPdfGraphics_DrawRtf_" data-uid="C1.WPF.Document.Util.C1GcPdfGraphics.DrawRtf*">DrawRtf Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Document_Util_C1GcPdfGraphics_DrawRtf_" data-uid="C1.WPF.Document.Util.C1GcPdfGraphics.DrawRtf*"></a>
<h4 id="C1_WPF_Document_Util_C1GcPdfGraphics_DrawRtf_System_Object_System_String_System_Int32_System_Int32_C1_Interop_Rect_System_Boolean_System_Drawing_Color_" data-uid="C1.WPF.Document.Util.C1GcPdfGraphics.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"></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></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></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></td>
    </tr>
    <tr>
      <td><span class="xref">Rect</span></td>
      <td><span class="parametername">bounds</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">detectUrls</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">backColor</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
