# C1.C1Preview.RenderRoundRectangle

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_RenderRoundRectangle" data-uid="C1.C1Preview.RenderRoundRectangle" class="text-break">RenderRoundRectangle Class
</h1>
  <div class="markdown level0 summary"><p>Represents a rectangle with rounded corners in a <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</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"><a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a></div>
    <div class="level2"><a class="xref" href="C1.C1Preview.RenderShapeBase.html">RenderShapeBase</a></div>
    <div class="level3"><a class="xref" href="C1.C1Preview.RenderRectangle.html">RenderRectangle</a></div>
    <div class="level4"><span class="xref">RenderRoundRectangle</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.C1Preview.IStyleOwner.html">IStyleOwner</a></div>
    <div><a class="xref" href="C1.C1Preview.IDocumentLocation.html">IDocumentLocation</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.PrintDocument.10.dll</h6>
  <h5 id="C1_C1Preview_RenderRoundRectangle_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RenderRoundRectangle : RenderRectangle, IStyleOwner, IDocumentLocation</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RenderRoundRectangle
    Inherits RenderRectangle
    Implements IStyleOwner, IDocumentLocation</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_C1Preview_RenderRoundRectangle__ctor" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor">
          <a class="xref" href="C1.C1Preview.RenderRoundRectangle.-ctor.html#C1_C1Preview_RenderRoundRectangle__ctor">RenderRoundRectangle()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a> class.
The location and size of the rectangle are set to those of the current <a class="xref" href="C1.C1Preview.RenderRectangle.html">RenderRectangle</a> object.
The dimensions of the ellipse used to draw the rounded corners are set
to <b>5%</b> of the corresponding rectangle's dimensions.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit)">
          <a class="xref" href="C1.C1Preview.RenderRoundRectangle.-ctor.html#C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_">RenderRoundRectangle(Unit, Unit)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a> class,
assigning the width and height of the rectangle.
The location of the rectangle is set to the location of the current <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a>.
The dimensions of the ellipse used to draw the rounded corners are set
to <b>5%</b> of the corresponding rectangle's dimensions.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.LineDef)">
          <a class="xref" href="C1.C1Preview.RenderRoundRectangle.-ctor.html#C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_">RenderRoundRectangle(Unit, Unit, LineDef)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a> class,
assigning the width and height of the rectangle, and the <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw it.
The location of the rectangle is set to the location of the current <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a>.
The dimensions of the ellipse used to draw the rounded corners are set
to <b>5%</b> of the corresponding rectangle's dimensions.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Brush_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.LineDef,System.Drawing.Brush)">
          <a class="xref" href="C1.C1Preview.RenderRoundRectangle.-ctor.html#C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Brush_">RenderRoundRectangle(Unit, Unit, LineDef, Brush)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a> class,
assigning the width and height of the rectangle, the <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw it, and the fill brush.
The location of the rectangle is set to the location of the current <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a>.
The dimensions of the ellipse used to draw the rounded corners are set
to <b>5%</b> of the corresponding rectangle's dimensions.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Color_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.LineDef,System.Drawing.Color)">
          <a class="xref" href="C1.C1Preview.RenderRoundRectangle.-ctor.html#C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Color_">RenderRoundRectangle(Unit, Unit, LineDef, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a> class,
assigning the width and height of the rectangle, the <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw it, and the fill color.
The location of the rectangle is set to the location of the current <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a>.
The dimensions of the ellipse used to draw the rounded corners are set
to <b>5%</b> of the corresponding rectangle's dimensions.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit)">
          <a class="xref" href="C1.C1Preview.RenderRoundRectangle.-ctor.html#C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_">RenderRoundRectangle(Unit, Unit, Unit, Unit)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a> class,
assigning the location and the size of the rectangle.
The dimensions of the ellipse used to draw the rounded corners are set
to <b>5%</b> of the corresponding rectangle's dimensions.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.LineDef)">
          <a class="xref" href="C1.C1Preview.RenderRoundRectangle.-ctor.html#C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_">RenderRoundRectangle(Unit, Unit, Unit, Unit, LineDef)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a> class,
assigning the location and the size of the rectangle,
and the <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw it.
The dimensions of the ellipse used to draw the rounded corners are set
to <b>5%</b> of the corresponding rectangle's dimensions.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Brush_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.LineDef,System.Drawing.Brush)">
          <a class="xref" href="C1.C1Preview.RenderRoundRectangle.-ctor.html#C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Brush_">RenderRoundRectangle(Unit, Unit, Unit, Unit, LineDef, Brush)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a> class,
assigning the location and the size of the rectangle,
the <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw it, and the fill brush.
The dimensions of the ellipse used to draw the rounded corners are set
to <b>5%</b> of the corresponding rectangle's dimensions.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Color_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.LineDef,System.Drawing.Color)">
          <a class="xref" href="C1.C1Preview.RenderRoundRectangle.-ctor.html#C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Color_">RenderRoundRectangle(Unit, Unit, Unit, Unit, LineDef, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a> class,
assigning the location and the size of the rectangle,
the <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw it, and the fill color.
The dimensions of the ellipse used to draw the rounded corners are set
to <b>5%</b> of the corresponding rectangle's dimensions.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Brush_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.LineDef,System.Drawing.Brush)">
          <a class="xref" href="C1.C1Preview.RenderRoundRectangle.-ctor.html#C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Brush_">RenderRoundRectangle(Unit, Unit, Unit, Unit, Unit, Unit, LineDef, Brush)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a> class,
assigning the location, size and roundness of the rectangle,
the <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw it, and the fill brush.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Color_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.LineDef,System.Drawing.Color)">
          <a class="xref" href="C1.C1Preview.RenderRoundRectangle.-ctor.html#C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Color_">RenderRoundRectangle(Unit, Unit, Unit, Unit, Unit, Unit, LineDef, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a> class,
assigning the location, size and roundness of the rectangle,
the <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw it, and the fill color.</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_C1Preview_RenderRoundRectangle_RoundRectangle" data-uid="C1.C1Preview.RenderRoundRectangle.RoundRectangle">
          <a class="xref" href="C1.C1Preview.RenderRoundRectangle.RoundRectangle.html#C1_C1Preview_RenderRoundRectangle_RoundRectangle">RoundRectangle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.RoundRectangleProps.html">RoundRectangleProps</a> object describing the geometric rectangle
represented by the current <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a> object.
The coordinates of the rectangle are relative to the left top corner
of the current <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a> object.</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_C1Preview_RenderRoundRectangle_CreateSame" data-uid="C1.C1Preview.RenderRoundRectangle.CreateSame">
          <a class="xref" href="C1.C1Preview.RenderRoundRectangle.CreateSame.html#C1_C1Preview_RenderRoundRectangle_CreateSame">CreateSame()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates new empty <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a> object
linked with same <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a> as current object.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
