# C1.C1Preview.RenderRoundRectangle.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_RenderRoundRectangle__ctor_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor*">RenderRoundRectangle Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_RenderRoundRectangle__ctor_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor*"></a>
<h4 id="C1_C1Preview_RenderRoundRectangle__ctor" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor">RenderRoundRectangle()</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderRoundRectangle()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_C1Preview_RenderRoundRectangle__ctor_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor*"></a>
<h4 id="C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit)">RenderRoundRectangle(Unit, Unit)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderRoundRectangle(Unit width, Unit height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(width As Unit, height As Unit)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the rectangle.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderRoundRectangle__ctor_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor*"></a>
<h4 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)">RenderRoundRectangle(Unit, Unit, LineDef)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderRoundRectangle(Unit width, Unit height, LineDef shapeLine)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(width As Unit, height As Unit, shapeLine As LineDef)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a></td>
      <td><span class="parametername">shapeLine</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw the rectangle.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderRoundRectangle__ctor_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor*"></a>
<h4 id="C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Windows_Media_Color_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.LineDef,System.Windows.Media.Color)">RenderRoundRectangle(Unit, Unit, LineDef, Color)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderRoundRectangle(Unit width, Unit height, LineDef shapeLine, Color shapeFillColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(width As Unit, height As Unit, shapeLine As LineDef, shapeFillColor As Color)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a></td>
      <td><span class="parametername">shapeLine</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.color">Color</a></td>
      <td><span class="parametername">shapeFillColor</span></td>
      <td><p>The color used to fill the rectangle.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderRoundRectangle__ctor_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor*"></a>
<h4 id="C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Windows_Media_Brush_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.LineDef,System.Windows.Media.Brush)">RenderRoundRectangle(Unit, Unit, LineDef, Brush)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderRoundRectangle(Unit width, Unit height, LineDef shapeLine, Brush shapeFillBrush)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(width As Unit, height As Unit, shapeLine As LineDef, shapeFillBrush As Brush)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a></td>
      <td><span class="parametername">shapeLine</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a></td>
      <td><span class="parametername">shapeFillBrush</span></td>
      <td><p>The brush used to fill the rectangle.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderRoundRectangle__ctor_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor*"></a>
<h4 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)">RenderRoundRectangle(Unit, Unit, Unit, Unit)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderRoundRectangle(Unit x, Unit y, Unit width, Unit height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(x As Unit, y As Unit, width As Unit, height As Unit)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The <b>X</b> coordinate of the rectangle, relative to the current object's location.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The <b>Y</b> coordinate of the rectangle, relative to the current object's location.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the rectangle.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderRoundRectangle__ctor_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor*"></a>
<h4 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)">RenderRoundRectangle(Unit, Unit, Unit, Unit, LineDef)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderRoundRectangle(Unit x, Unit y, Unit width, Unit height, LineDef shapeLine)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(x As Unit, y As Unit, width As Unit, height As Unit, shapeLine As LineDef)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The <b>X</b> coordinate of the rectangle, relative to the current object's location.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The <b>Y</b> coordinate of the rectangle, relative to the current object's location.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a></td>
      <td><span class="parametername">shapeLine</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw the rectangle.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderRoundRectangle__ctor_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor*"></a>
<h4 id="C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Windows_Media_Color_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.LineDef,System.Windows.Media.Color)">RenderRoundRectangle(Unit, Unit, Unit, Unit, LineDef, Color)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderRoundRectangle(Unit x, Unit y, Unit width, Unit height, LineDef shapeLine, Color shapeFillColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(x As Unit, y As Unit, width As Unit, height As Unit, shapeLine As LineDef, shapeFillColor As Color)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The <b>X</b> coordinate of the rectangle, relative to the current object's location.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The <b>Y</b> coordinate of the rectangle, relative to the current object's location.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a></td>
      <td><span class="parametername">shapeLine</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.color">Color</a></td>
      <td><span class="parametername">shapeFillColor</span></td>
      <td><p>The color used to fill the rectangle.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderRoundRectangle__ctor_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor*"></a>
<h4 id="C1_C1Preview_RenderRoundRectangle__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_System_Windows_Media_Brush_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.LineDef,System.Windows.Media.Brush)">RenderRoundRectangle(Unit, Unit, Unit, Unit, LineDef, Brush)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderRoundRectangle(Unit x, Unit y, Unit width, Unit height, LineDef shapeLine, Brush shapeFillBrush)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(x As Unit, y As Unit, width As Unit, height As Unit, shapeLine As LineDef, shapeFillBrush As Brush)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The <b>X</b> coordinate of the rectangle, relative to the current object's location.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The <b>Y</b> coordinate of the rectangle, relative to the current object's location.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a></td>
      <td><span class="parametername">shapeLine</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a></td>
      <td><span class="parametername">shapeFillBrush</span></td>
      <td><p>The brush used to fill the rectangle.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderRoundRectangle__ctor_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor*"></a>
<h4 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_Windows_Media_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.Windows.Media.Color)">RenderRoundRectangle(Unit, Unit, Unit, Unit, Unit, Unit, LineDef, Color)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderRoundRectangle(Unit x, Unit y, Unit width, Unit height, Unit ellipseWidth, Unit ellipseHeight, LineDef shapeLine, Color shapeFillColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(x As Unit, y As Unit, width As Unit, height As Unit, ellipseWidth As Unit, ellipseHeight As Unit, shapeLine As LineDef, shapeFillColor As Color)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The <b>X</b> coordinate of the rectangle, relative to the current object's location.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The <b>Y</b> coordinate of the rectangle, relative to the current object's location.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">ellipseWidth</span></td>
      <td><p>The width of the ellipse used to draw the rounded corners (may be specified as <b>&quot;5%width&quot;</b> for example).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">ellipseHeight</span></td>
      <td><p>The height of the ellipse used to draw the rounded corners (may be specified as <b>&quot;5%height&quot;</b> for example).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a></td>
      <td><span class="parametername">shapeLine</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.color">Color</a></td>
      <td><span class="parametername">shapeFillColor</span></td>
      <td><p>The color used to fill the rectangle.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderRoundRectangle__ctor_" data-uid="C1.C1Preview.RenderRoundRectangle.#ctor*"></a>
<h4 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_Windows_Media_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.Windows.Media.Brush)">RenderRoundRectangle(Unit, Unit, Unit, Unit, Unit, Unit, LineDef, Brush)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderRoundRectangle(Unit x, Unit y, Unit width, Unit height, Unit ellipseWidth, Unit ellipseHeight, LineDef shapeLine, Brush shapeFillBrush)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(x As Unit, y As Unit, width As Unit, height As Unit, ellipseWidth As Unit, ellipseHeight As Unit, shapeLine As LineDef, shapeFillBrush As Brush)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The <b>X</b> coordinate of the rectangle, relative to the current object's location.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The <b>Y</b> coordinate of the rectangle, relative to the current object's location.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">ellipseWidth</span></td>
      <td><p>The width of the ellipse used to draw the rounded corners (may be specified as <b>&quot;5%width&quot;</b> for example).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">ellipseHeight</span></td>
      <td><p>The height of the ellipse used to draw the rounded corners (may be specified as <b>&quot;5%height&quot;</b> for example).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a></td>
      <td><span class="parametername">shapeLine</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a></td>
      <td><span class="parametername">shapeFillBrush</span></td>
      <td><p>The brush used to fill the rectangle.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
