# C1.WPF.RichTextBox.C1PaintingContext

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RichTextBox_C1PaintingContext" data-uid="C1.WPF.RichTextBox.C1PaintingContext" class="text-break">C1PaintingContext Class
</h1>
  <div class="markdown level0 summary"><p>Provides the necessary context when painting rich text.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">C1PaintingContext</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.RichTextBox.html">C1.WPF.RichTextBox</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.RichTextBox.dll</h6>
  <h5 id="C1_WPF_RichTextBox_C1PaintingContext_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1PaintingContext</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1PaintingContext</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_RichTextBox_C1PaintingContext_ViewManager" data-uid="C1.WPF.RichTextBox.C1PaintingContext.ViewManager">
          <a class="xref" href="C1.WPF.RichTextBox.C1PaintingContext.ViewManager.html#C1_WPF_RichTextBox_C1PaintingContext_ViewManager">ViewManager</a>
        </td>
        <td class="markdown level1 summary"><p>The <a class="xref" href="C1.WPF.RichTextBox.C1RichTextViewManager.html">C1RichTextViewManager</a> painting.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1PaintingContext_Viewport" data-uid="C1.WPF.RichTextBox.C1PaintingContext.Viewport">
          <a class="xref" href="C1.WPF.RichTextBox.C1PaintingContext.Viewport.html#C1_WPF_RichTextBox_C1PaintingContext_Viewport">Viewport</a>
        </td>
        <td class="markdown level1 summary"><p>The viewport in document coordinates that is being painted.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_RichTextBox_C1PaintingContext_Paint_System_Double_System_Double_System_Boolean_System_Windows_FrameworkElement_" data-uid="C1.WPF.RichTextBox.C1PaintingContext.Paint(System.Double,System.Double,System.Boolean,System.Windows.FrameworkElement)">
          <a class="xref" href="C1.WPF.RichTextBox.C1PaintingContext.Paint.html#C1_WPF_RichTextBox_C1PaintingContext_Paint_System_Double_System_Double_System_Boolean_System_Windows_FrameworkElement_">Paint(double, double, bool, FrameworkElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Paints a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a> inside the appropriate <a class="xref" href="C1.WPF.RichTextBox.C1RichTextPresenter.html">C1RichTextPresenter</a>.</p>
</td>
      </tr>
      <tr>
        <td 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)">
          <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>
        </td>
        <td 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>
</td>
      </tr>
    </tbody>
  </table>

</div>
