# C1.WPF.RichTextBox.C1ResizePainter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RichTextBox_C1ResizePainter" data-uid="C1.WPF.RichTextBox.C1ResizePainter" class="text-break">C1ResizePainter Class
</h1>
  <div class="markdown level0 summary"><p>Paints resize thumbs around a <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextElement.html">C1TextElement</a>.</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">C1ResizePainter</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.WPF.RichTextBox.IRichTextPainter.html">IRichTextPainter</a></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.4.6.2.dll</h6>
  <h5 id="C1_WPF_RichTextBox_C1ResizePainter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1ResizePainter : IRichTextPainter</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1ResizePainter
    Implements IRichTextPainter</code></pre>
  </div>
  <h3 id="constructors">Constructors
</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_C1ResizePainter__ctor" data-uid="C1.WPF.RichTextBox.C1ResizePainter.#ctor">
          <a class="xref" href="C1.WPF.RichTextBox.C1ResizePainter.-ctor.html#C1_WPF_RichTextBox_C1ResizePainter__ctor">C1ResizePainter()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</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_C1ResizePainter_DirectionProperty" data-uid="C1.WPF.RichTextBox.C1ResizePainter.DirectionProperty">
          <a class="xref" href="C1.WPF.RichTextBox.C1ResizePainter.DirectionProperty.html">DirectionProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the Direction attached property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_C1ResizePainter_Element" data-uid="C1.WPF.RichTextBox.C1ResizePainter.Element">
          <a class="xref" href="C1.WPF.RichTextBox.C1ResizePainter.Element.html#C1_WPF_RichTextBox_C1ResizePainter_Element">Element</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextElement.html">C1TextElement</a> to resize.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ResizePainter_ResizeTemplate" data-uid="C1.WPF.RichTextBox.C1ResizePainter.ResizeTemplate">
          <a class="xref" href="C1.WPF.RichTextBox.C1ResizePainter.ResizeTemplate.html#C1_WPF_RichTextBox_C1ResizePainter_ResizeTemplate">ResizeTemplate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.datatemplate">DataTemplate</a> that draws the resize thumbs.</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_C1ResizePainter_GetDirection_System_Windows_DependencyObject_" data-uid="C1.WPF.RichTextBox.C1ResizePainter.GetDirection(System.Windows.DependencyObject)">
          <a class="xref" href="C1.WPF.RichTextBox.C1ResizePainter.GetDirection.html#C1_WPF_RichTextBox_C1ResizePainter_GetDirection_System_Windows_DependencyObject_">GetDirection(DependencyObject)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the direction.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ResizePainter_Paint_C1_WPF_RichTextBox_C1PaintingContext_" data-uid="C1.WPF.RichTextBox.C1ResizePainter.Paint(C1.WPF.RichTextBox.C1PaintingContext)">
          <a class="xref" href="C1.WPF.RichTextBox.C1ResizePainter.Paint.html#C1_WPF_RichTextBox_C1ResizePainter_Paint_C1_WPF_RichTextBox_C1PaintingContext_">Paint(C1PaintingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is called each time the <a class="xref" href="C1.WPF.RichTextBox.C1RichTextViewManager.html">C1RichTextViewManager</a> paints.</p>
</td>
      </tr>
      <tr>
        <td 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)">
          <a class="xref" href="C1.WPF.RichTextBox.C1ResizePainter.PaintInline.html#C1_WPF_RichTextBox_C1ResizePainter_PaintInline_C1_WPF_RichTextBox_C1PaintingContext_C1_WPF_RichTextBox_C1Line_">PaintInline(C1PaintingContext, C1Line)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ResizePainter_SetDirection_System_Windows_DependencyObject_System_Windows_Point_" data-uid="C1.WPF.RichTextBox.C1ResizePainter.SetDirection(System.Windows.DependencyObject,System.Windows.Point)">
          <a class="xref" href="C1.WPF.RichTextBox.C1ResizePainter.SetDirection.html#C1_WPF_RichTextBox_C1ResizePainter_SetDirection_System_Windows_DependencyObject_System_Windows_Point_">SetDirection(DependencyObject, Point)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the direction.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</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_C1ResizePainter_PainterChanged" data-uid="C1.WPF.RichTextBox.C1ResizePainter.PainterChanged">
          <a class="xref" href="C1.WPF.RichTextBox.C1ResizePainter.PainterChanged.html">PainterChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Fired when the painter needs to repaint a text range.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
