# C1.WPF.RichTextBox.C1ResizePainter.PaintInline

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_RichTextBox_C1ResizePainter_PaintInline_" data-uid="C1.WPF.RichTextBox.C1ResizePainter.PaintInline*">PaintInline Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_RichTextBox_C1ResizePainter_PaintInline_" data-uid="C1.WPF.RichTextBox.C1ResizePainter.PaintInline*"></a>
<h4 id="C1_WPF_RichTextBox_C1ResizePainter_PaintInline_C1_WPF_RichTextBox_C1PaintingContext_C1_WPF_RichTextBox_C1Line_" data-uid="C1.WPF.RichTextBox.C1ResizePainter.PaintInline(C1.WPF.RichTextBox.C1PaintingContext,C1.WPF.RichTextBox.C1Line)">PaintInline(C1PaintingContext, C1Line)</h4>
<div class="markdown level1 summary"><p>This method is called each time the <a class="xref" href="C1.WPF.RichTextBox.C1RichTextViewManager.html">C1RichTextViewManager</a> paints a <a class="xref" href="C1.WPF.RichTextBox.C1Line.html">C1Line</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void PaintInline(C1PaintingContext context, C1Line line)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub PaintInline(context As C1PaintingContext, line As C1Line)</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.WPF.RichTextBox.C1PaintingContext.html">C1PaintingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>A <a class="xref" href="C1.WPF.RichTextBox.C1PaintingContext.html">C1PaintingContext</a> providing information for the current document
section being painted.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.RichTextBox.C1Line.html">C1Line</a></td>
      <td><span class="parametername">line</span></td>
      <td><p>The <a class="xref" href="C1.WPF.RichTextBox.C1Line.html">C1Line</a> being painted.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="C1.WPF.RichTextBox.IRichTextPainter.PaintInline.html#C1_WPF_RichTextBox_IRichTextPainter_PaintInline_C1_WPF_RichTextBox_C1PaintingContext_C1_WPF_RichTextBox_C1Line_">IRichTextPainter.PaintInline(C1PaintingContext, C1Line)</a></div>
<h5 id="C1_WPF_RichTextBox_C1ResizePainter_PaintInline_C1_WPF_RichTextBox_C1PaintingContext_C1_WPF_RichTextBox_C1Line__remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;
</code></pre>
<p>Any UIElement that is to be painted with the rich text inside the line is passed to <a class="xref" href="C1.WPF.RichTextBox.C1PaintingContext.PaintInline.html#C1_WPF_RichTextBox_C1PaintingContext_PaintInline_C1_WPF_RichTextBox_C1Line_System_Double_System_Double_C1_WPF_RichTextBox_C1PaintLayer_System_Windows_FrameworkElement_">PaintInline(C1Line, double, double, C1PaintLayer, FrameworkElement)</a>.
Note that each time this method is called, all UIElements must be painted by calling <a class="xref" href="C1.WPF.RichTextBox.C1PaintingContext.PaintInline.html#C1_WPF_RichTextBox_C1PaintingContext_PaintInline_C1_WPF_RichTextBox_C1Line_System_Double_System_Double_C1_WPF_RichTextBox_C1PaintLayer_System_Windows_FrameworkElement_">PaintInline(C1Line, double, double, C1PaintLayer, FrameworkElement)</a>,
otherwise they will be removed.</p>

</div>
</div>
