# C1.C1Preview.RenderPie.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_RenderPie__ctor_" data-uid="C1.C1Preview.RenderPie.#ctor*">RenderPie Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_RenderPie__ctor_" data-uid="C1.C1Preview.RenderPie.#ctor*"></a>
<h4 id="C1_C1Preview_RenderPie__ctor" data-uid="C1.C1Preview.RenderPie.#ctor">RenderPie()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a> class.
The start angle of the pie is set to 0, while the sweep angle is set to 360 degrees,
thus making it a complete ellipse.
The location and size of the ellipse are set to those of the current <a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderPie()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_C1Preview_RenderPie__ctor_" data-uid="C1.C1Preview.RenderPie.#ctor*"></a>
<h4 id="C1_C1Preview_RenderPie__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_" data-uid="C1.C1Preview.RenderPie.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,System.Single,System.Single)">RenderPie(Unit, Unit, float, float)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a> class,
assigning the width, height, and start and sweep angles of the pie shape.
The location of the shape is set to the location of the current <a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderPie(Unit width, Unit height, float startAngle, float sweepAngle)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(width As Unit, height As Unit, startAngle As Single, sweepAngle As Single)</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 ellipse containing the pie shape.</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 ellipse containing the pie shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">startAngle</span></td>
      <td><p>The angle, in degrees, clockwise from the <b>X</b> axis
to the start of the pie's arc.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">sweepAngle</span></td>
      <td><p>The angle, measured in degrees, clockwise from <code class="paramref">startAngle</code>
to the end of the pie's arc.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderPie__ctor_" data-uid="C1.C1Preview.RenderPie.#ctor*"></a>
<h4 id="C1_C1Preview_RenderPie__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_LineDef_" data-uid="C1.C1Preview.RenderPie.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,System.Single,System.Single,C1.C1Preview.LineDef)">RenderPie(Unit, Unit, float, float, LineDef)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a> class,
assigning the width, height, start and sweep angles of the pie shape,
and the <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw the shape.
The location of the shape is set to the location of the current <a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderPie(Unit width, Unit height, float startAngle, float sweepAngle, LineDef shapeLine)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(width As Unit, height As Unit, startAngle As Single, sweepAngle As Single, 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 ellipse containing the pie shape.</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 ellipse containing the pie shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">startAngle</span></td>
      <td><p>The angle, in degrees, clockwise from the <b>X</b> axis
to the start of the pie's arc.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">sweepAngle</span></td>
      <td><p>The angle, measured in degrees, clockwise from <code class="paramref">startAngle</code>
to the end of the pie's arc.</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 pie shape.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderPie__ctor_" data-uid="C1.C1Preview.RenderPie.#ctor*"></a>
<h4 id="C1_C1Preview_RenderPie__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_LineDef_System_Drawing_Color_" data-uid="C1.C1Preview.RenderPie.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,System.Single,System.Single,C1.C1Preview.LineDef,System.Drawing.Color)">RenderPie(Unit, Unit, float, float, LineDef, Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a> class,
assigning the width, height, start and sweep angles of the pie shape,
the <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw the shape, and the fill color.
The location of the shape is set to the location of the current <a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderPie(Unit width, Unit height, float startAngle, float sweepAngle, 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, startAngle As Single, sweepAngle As Single, 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 ellipse containing the pie shape.</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 ellipse containing the pie shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">startAngle</span></td>
      <td><p>The angle, in degrees, clockwise from the <b>X</b> axis
to the start of the pie's arc.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">sweepAngle</span></td>
      <td><p>The angle, measured in degrees, clockwise from <code class="paramref">startAngle</code>
to the end of the pie's arc.</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 pie shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">shapeFillColor</span></td>
      <td><p>The shape fill color.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderPie__ctor_" data-uid="C1.C1Preview.RenderPie.#ctor*"></a>
<h4 id="C1_C1Preview_RenderPie__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_LineDef_System_Drawing_Brush_" data-uid="C1.C1Preview.RenderPie.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,System.Single,System.Single,C1.C1Preview.LineDef,System.Drawing.Brush)">RenderPie(Unit, Unit, float, float, LineDef, Brush)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a> class,
assigning the width, height, start and sweep angles of the pie shape,
the <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw the shape, and the fill brush.
The location of the shape is set to the location of the current <a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderPie(Unit width, Unit height, float startAngle, float sweepAngle, 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, startAngle As Single, sweepAngle As Single, 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 ellipse containing the pie shape.</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 ellipse containing the pie shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">startAngle</span></td>
      <td><p>The angle, in degrees, clockwise from the <b>X</b> axis
to the start of the pie's arc.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">sweepAngle</span></td>
      <td><p>The angle, measured in degrees, clockwise from <code class="paramref">startAngle</code>
to the end of the pie's arc.</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 pie shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.brush">Brush</a></td>
      <td><span class="parametername">shapeFillBrush</span></td>
      <td><p>The shape fill brush.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderPie__ctor_" data-uid="C1.C1Preview.RenderPie.#ctor*"></a>
<h4 id="C1_C1Preview_RenderPie__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_" data-uid="C1.C1Preview.RenderPie.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,System.Single,System.Single)">RenderPie(Unit, Unit, Unit, Unit, float, float)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a> class,
assigning the location, size, and start and sweep angles of the pie shape.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderPie(Unit x, Unit y, Unit width, Unit height, float startAngle, float sweepAngle)</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, startAngle As Single, sweepAngle As Single)</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 ellipse containing the pie shape.</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 ellipse containing the pie shape.</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 ellipse containing the pie shape.</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 ellipse containing the pie shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">startAngle</span></td>
      <td><p>The angle, in degrees, clockwise from the <b>X</b> axis
to the start of the pie's arc.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">sweepAngle</span></td>
      <td><p>The angle, measured in degrees, clockwise from <code class="paramref">startAngle</code>
to the end of the pie's arc.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderPie__ctor_" data-uid="C1.C1Preview.RenderPie.#ctor*"></a>
<h4 id="C1_C1Preview_RenderPie__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_LineDef_" data-uid="C1.C1Preview.RenderPie.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,System.Single,System.Single,C1.C1Preview.LineDef)">RenderPie(Unit, Unit, Unit, Unit, float, float, LineDef)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a> class,
assigning the location, size, start and sweep angles of the pie shape,
and the <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw the shape.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderPie(Unit x, Unit y, Unit width, Unit height, float startAngle, float sweepAngle, 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, startAngle As Single, sweepAngle As Single, 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 ellipse containing the pie shape.</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 ellipse containing the pie shape.</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 ellipse containing the pie shape.</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 ellipse containing the pie shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">startAngle</span></td>
      <td><p>The angle, in degrees, clockwise from the <b>X</b> axis
to the start of the pie's arc.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">sweepAngle</span></td>
      <td><p>The angle, measured in degrees, clockwise from <code class="paramref">startAngle</code>
to the end of the pie's arc.</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 pie shape.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderPie__ctor_" data-uid="C1.C1Preview.RenderPie.#ctor*"></a>
<h4 id="C1_C1Preview_RenderPie__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_LineDef_System_Drawing_Color_" data-uid="C1.C1Preview.RenderPie.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,System.Single,System.Single,C1.C1Preview.LineDef,System.Drawing.Color)">RenderPie(Unit, Unit, Unit, Unit, float, float, LineDef, Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a> class,
assigning the location, size, start and sweep angles of the pie shape,
the <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw the shape, 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 RenderPie(Unit x, Unit y, Unit width, Unit height, float startAngle, float sweepAngle, 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, startAngle As Single, sweepAngle As Single, 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 ellipse containing the pie shape.</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 ellipse containing the pie shape.</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 ellipse containing the pie shape.</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 ellipse containing the pie shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">startAngle</span></td>
      <td><p>The angle, in degrees, clockwise from the <b>X</b> axis
to the start of the pie's arc.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">sweepAngle</span></td>
      <td><p>The angle, measured in degrees, clockwise from <code class="paramref">startAngle</code>
to the end of the pie's arc.</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 pie shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">shapeFillColor</span></td>
      <td><p>The shape fill color.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RenderPie__ctor_" data-uid="C1.C1Preview.RenderPie.#ctor*"></a>
<h4 id="C1_C1Preview_RenderPie__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_LineDef_System_Drawing_Brush_" data-uid="C1.C1Preview.RenderPie.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,System.Single,System.Single,C1.C1Preview.LineDef,System.Drawing.Brush)">RenderPie(Unit, Unit, Unit, Unit, float, float, LineDef, Brush)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a> class,
assigning the location, size, start and sweep angles of the pie shape,
the <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> used to draw the shape, 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 RenderPie(Unit x, Unit y, Unit width, Unit height, float startAngle, float sweepAngle, 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, startAngle As Single, sweepAngle As Single, 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 ellipse containing the pie shape.</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 ellipse containing the pie shape.</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 ellipse containing the pie shape.</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 ellipse containing the pie shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">startAngle</span></td>
      <td><p>The angle, in degrees, clockwise from the <b>X</b> axis
to the start of the pie's arc.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">sweepAngle</span></td>
      <td><p>The angle, measured in degrees, clockwise from <code class="paramref">startAngle</code>
to the end of the pie's arc.</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 pie shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.brush">Brush</a></td>
      <td><span class="parametername">shapeFillBrush</span></td>
      <td><p>The shape fill brush.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
