# C1.WPF.RichTextBox.C1PaintingContext.PaintInline

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_RichTextBox_C1PaintingContext_PaintInline_" data-uid="C1.WPF.RichTextBox.C1PaintingContext.PaintInline*">PaintInline Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_RichTextBox_C1PaintingContext_PaintInline_" data-uid="C1.WPF.RichTextBox.C1PaintingContext.PaintInline*"></a>
<h4 id="C1_WPF_RichTextBox_C1PaintingContext_PaintInline_C1_WPF_RichTextBox_C1Line_System_Double_System_Double_C1_WPF_RichTextBox_C1PaintLayer_System_Windows_FrameworkElement_" data-uid="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)</h4>
<div class="markdown level1 summary"><p>Paints a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a> inside 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(C1Line line, double left, double top, C1PaintLayer layer, FrameworkElement element)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub PaintInline(line As C1Line, left As Double, top As Double, layer As C1PaintLayer, element As FrameworkElement)</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.C1Line.html">C1Line</a></td>
      <td><span class="parametername">line</span></td>
      <td><p>The line to paint inside of.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">left</span></td>
      <td><p>The left coordinate, in line coordinates.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">top</span></td>
      <td><p>The top coordinate, in line coordinates.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.RichTextBox.C1PaintLayer.html">C1PaintLayer</a></td>
      <td><span class="parametername">layer</span></td>
      <td><p>The <a class="xref" href="C1.WPF.RichTextBox.C1PaintLayer.html">C1PaintLayer</a> where to paint.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></td>
      <td><span class="parametername">element</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a> to paint.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
