# C1.Win.Document.Util.C1RichText.PerformDrawOrMeasure

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Document_Util_C1RichText_PerformDrawOrMeasure_" data-uid="C1.Win.Document.Util.C1RichText.PerformDrawOrMeasure*">PerformDrawOrMeasure Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Document_Util_C1RichText_PerformDrawOrMeasure_" data-uid="C1.Win.Document.Util.C1RichText.PerformDrawOrMeasure*"></a>
<h4 id="C1_Win_Document_Util_C1RichText_PerformDrawOrMeasure_System_IntPtr_System_IntPtr_System_Drawing_Rectangle_System_Int32_System_Int32_System_Boolean_System_Drawing_Rectangle__System_Int32__System_Boolean__" data-uid="C1.Win.Document.Util.C1RichText.PerformDrawOrMeasure(System.IntPtr,System.IntPtr,System.Drawing.Rectangle,System.Int32,System.Int32,System.Boolean,System.Drawing.Rectangle@,System.Int32@,System.Boolean@)">PerformDrawOrMeasure(IntPtr, IntPtr, Rectangle, int, int, bool, ref Rectangle, ref int, ref bool)</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">protected void PerformDrawOrMeasure(IntPtr drawDc, IntPtr measureDc, Rectangle boundsRectTwips, int startIndex, int length, bool performDrawing, ref Rectangle measuredRectTwips, ref int fittedCharsCount, ref bool allCharsFitted)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub PerformDrawOrMeasure(drawDc As IntPtr, measureDc As IntPtr, boundsRectTwips As Rectangle, startIndex As Integer, length As Integer, performDrawing As Boolean, ByRef measuredRectTwips As Rectangle, ByRef fittedCharsCount As Integer, ByRef allCharsFitted As Boolean)</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.intptr">IntPtr</a></td>
      <td><span class="parametername">drawDc</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a></td>
      <td><span class="parametername">measureDc</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">Rectangle</span></td>
      <td><span class="parametername">boundsRectTwips</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">startIndex</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">performDrawing</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">Rectangle</span></td>
      <td><span class="parametername">measuredRectTwips</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">fittedCharsCount</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">allCharsFitted</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Document_Util_C1RichText_PerformDrawOrMeasure_" data-uid="C1.Win.Document.Util.C1RichText.PerformDrawOrMeasure*"></a>
<h4 id="C1_Win_Document_Util_C1RichText_PerformDrawOrMeasure_System_Drawing_Graphics_System_Drawing_Graphics_System_Drawing_Rectangle_System_Int32_System_Int32_System_Boolean_System_Drawing_Rectangle__System_Int32__System_Boolean__" data-uid="C1.Win.Document.Util.C1RichText.PerformDrawOrMeasure(System.Drawing.Graphics,System.Drawing.Graphics,System.Drawing.Rectangle,System.Int32,System.Int32,System.Boolean,System.Drawing.Rectangle@,System.Int32@,System.Boolean@)">PerformDrawOrMeasure(Graphics, Graphics, Rectangle, int, int, bool, ref Rectangle, ref int, ref bool)</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">protected void PerformDrawOrMeasure(Graphics drawGraphics, Graphics measureGraphics, Rectangle boundsRectTwips, int startIndex, int length, bool performDrawing, ref Rectangle measuredRectTwips, ref int fittedCharsCount, ref bool allCharsFitted)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub PerformDrawOrMeasure(drawGraphics As Graphics, measureGraphics As Graphics, boundsRectTwips As Rectangle, startIndex As Integer, length As Integer, performDrawing As Boolean, ByRef measuredRectTwips As Rectangle, ByRef fittedCharsCount As Integer, ByRef allCharsFitted As Boolean)</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">Graphics</span></td>
      <td><span class="parametername">drawGraphics</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">Graphics</span></td>
      <td><span class="parametername">measureGraphics</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">Rectangle</span></td>
      <td><span class="parametername">boundsRectTwips</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">startIndex</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">performDrawing</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">Rectangle</span></td>
      <td><span class="parametername">measuredRectTwips</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">fittedCharsCount</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">allCharsFitted</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
