# C1.C1Preview.RectangleProps

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_RectangleProps" data-uid="C1.C1Preview.RectangleProps" class="text-break">RectangleProps Class
</h1>
  <div class="markdown level0 summary"><p>Represents the geometric properties of a rectangle,
also serves as the base for classes describing
certain other shapes (such as round rectangle, arc and pie).
Used by <a class="xref" href="C1.C1Preview.RenderRectangle.html">RenderRectangle</a> and derived 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.ShapeProps.html">ShapeProps</a></div>
    <div class="level2"><span class="xref">RectangleProps</span></div>
      <div class="level3"><a class="xref" href="C1.C1Preview.EllipsePartProps.html">EllipsePartProps</a></div>
      <div class="level3"><a class="xref" href="C1.C1Preview.RoundRectangleProps.html">RoundRectangleProps</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_RectangleProps_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RectangleProps : ShapeProps</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RectangleProps
    Inherits ShapeProps</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_RectangleProps__ctor" data-uid="C1.C1Preview.RectangleProps.#ctor">
          <a class="xref" href="C1.C1Preview.RectangleProps.-ctor.html#C1_C1Preview_RectangleProps__ctor">RectangleProps()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RectangleProps.html">RectangleProps</a> class.
The location and size of the rectangle are set to those of the containing
<a class="xref" href="C1.C1Preview.RenderRectangle.html">RenderRectangle</a> object.</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_RectangleProps_Height" data-uid="C1.C1Preview.RectangleProps.Height">
          <a class="xref" href="C1.C1Preview.RectangleProps.Height.html#C1_C1Preview_RectangleProps_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the height of the current rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RectangleProps_Width" data-uid="C1.C1Preview.RectangleProps.Width">
          <a class="xref" href="C1.C1Preview.RectangleProps.Width.html#C1_C1Preview_RectangleProps_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the width of the current rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RectangleProps_X" data-uid="C1.C1Preview.RectangleProps.X">
          <a class="xref" href="C1.C1Preview.RectangleProps.X.html#C1_C1Preview_RectangleProps_X">X</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <b>X</b> coordinate of the current rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_RectangleProps_Y" data-uid="C1.C1Preview.RectangleProps.Y">
          <a class="xref" href="C1.C1Preview.RectangleProps.Y.html#C1_C1Preview_RectangleProps_Y">Y</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <b>Y</b> coordinate of the current rectangle.</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_RectangleProps_AssignFrom_C1_C1Preview_ShapeProps_" data-uid="C1.C1Preview.RectangleProps.AssignFrom(C1.C1Preview.ShapeProps)">
          <a class="xref" href="C1.C1Preview.RectangleProps.AssignFrom.html#C1_C1Preview_RectangleProps_AssignFrom_C1_C1Preview_ShapeProps_">AssignFrom(ShapeProps)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.C1Preview.ShapeProps.html">ShapeProps</a> to the current object.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
