# C1.C1Preview.RenderRectangle

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_RenderRectangle" data-uid="C1.C1Preview.RenderRectangle" class="text-break">RenderRectangle Class
</h1>
  <div class="markdown level0 summary"><p>Represents a rectangle in a <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a>.
This is also the base class for <a class="xref" href="C1.C1Preview.RenderEllipse.html">RenderEllipse</a> and <a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a> classes.</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"><span class="xref">RenderRectangle</span></div>
      <div class="level4"><a class="xref" href="C1.C1Preview.RenderEllipse.html">RenderEllipse</a></div>
      <div class="level4"><a class="xref" href="C1.C1Preview.RenderRoundRectangle.html">RenderRoundRectangle</a></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.4.8.dll</h6>
  <h5 id="C1_C1Preview_RenderRectangle_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RenderRectangle : RenderShapeBase, IStyleOwner, IDocumentLocation</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RenderRectangle
    Inherits RenderShapeBase
    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_RenderRectangle__ctor" data-uid="C1.C1Preview.RenderRectangle.#ctor">
          <a class="xref" href="C1.C1Preview.RenderRectangle.-ctor.html#C1_C1Preview_RenderRectangle__ctor">RenderRectangle()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRectangle.html">RenderRectangle</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.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_" data-uid="C1.C1Preview.RenderRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit)">
          <a class="xref" href="C1.C1Preview.RenderRectangle.-ctor.html#C1_C1Preview_RenderRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_">RenderRectangle(Unit, Unit)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRectangle.html">RenderRectangle</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.RenderRectangle.html">RenderRectangle</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_" data-uid="C1.C1Preview.RenderRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.LineDef)">
          <a class="xref" href="C1.C1Preview.RenderRectangle.-ctor.html#C1_C1Preview_RenderRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_">RenderRectangle(Unit, Unit, LineDef)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRectangle.html">RenderRectangle</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.RenderRectangle.html">RenderRectangle</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Brush_" data-uid="C1.C1Preview.RenderRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.LineDef,System.Drawing.Brush)">
          <a class="xref" href="C1.C1Preview.RenderRectangle.-ctor.html#C1_C1Preview_RenderRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Brush_">RenderRectangle(Unit, Unit, LineDef, Brush)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRectangle.html">RenderRectangle</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.RenderRectangle.html">RenderRectangle</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Color_" data-uid="C1.C1Preview.RenderRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.LineDef,System.Drawing.Color)">
          <a class="xref" href="C1.C1Preview.RenderRectangle.-ctor.html#C1_C1Preview_RenderRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Color_">RenderRectangle(Unit, Unit, LineDef, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRectangle.html">RenderRectangle</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.RenderRectangle.html">RenderRectangle</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_" data-uid="C1.C1Preview.RenderRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit)">
          <a class="xref" href="C1.C1Preview.RenderRectangle.-ctor.html#C1_C1Preview_RenderRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_">RenderRectangle(Unit, Unit, Unit, Unit)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderRectangle.html">RenderRectangle</a> class,
assigning the location and the size of the rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_" data-uid="C1.C1Preview.RenderRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.LineDef)">
          <a class="xref" href="C1.C1Preview.RenderRectangle.-ctor.html#C1_C1Preview_RenderRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_">RenderRectangle(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.RenderRectangle.html">RenderRectangle</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.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Brush_" data-uid="C1.C1Preview.RenderRectangle.#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.RenderRectangle.-ctor.html#C1_C1Preview_RenderRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Brush_">RenderRectangle(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.RenderRectangle.html">RenderRectangle</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.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RenderRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Color_" data-uid="C1.C1Preview.RenderRectangle.#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.RenderRectangle.-ctor.html#C1_C1Preview_RenderRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Drawing_Color_">RenderRectangle(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.RenderRectangle.html">RenderRectangle</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.</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_RenderRectangle_Rectangle" data-uid="C1.C1Preview.RenderRectangle.Rectangle">
          <a class="xref" href="C1.C1Preview.RenderRectangle.Rectangle.html#C1_C1Preview_RenderRectangle_Rectangle">Rectangle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.RectangleProps.html">RectangleProps</a> object describing the geometric rectangle
represented by the current <a class="xref" href="C1.C1Preview.RenderRectangle.html">RenderRectangle</a> object.
The coordinates of the rectangle are relative to the left top corner
of the current <a class="xref" href="C1.C1Preview.RenderRectangle.html">RenderRectangle</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_RenderRectangle_CreateSame" data-uid="C1.C1Preview.RenderRectangle.CreateSame">
          <a class="xref" href="C1.C1Preview.RenderRectangle.CreateSame.html#C1_C1Preview_RenderRectangle_CreateSame">CreateSame()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates new empty <a class="xref" href="C1.C1Preview.RenderRectangle.html">RenderRectangle</a> object
linked with same <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a> as current object.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
