# C1.C1Preview.C1PrintDocument.RenderDirectPie

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirectPie*">RenderDirectPie Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1PrintDocument_RenderDirectPie_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirectPie*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_Style_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirectPie(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,System.Single,System.Single,C1.C1Preview.Style)">RenderDirectPie(Unit, Unit, Unit, Unit, float, float, Style)</h4>
<div class="markdown level1 summary"><p>Adds a pie to the <a class="xref" href="C1.C1Preview.C1PrintDocument.Body.html#C1_C1Preview_C1PrintDocument_Body">Body</a> of the current document
at a specific position on the current page, and resolves it.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void RenderDirectPie(Unit x, Unit y, Unit width, Unit height, float startAngle, float sweepAngle, Style style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub RenderDirectPie(x As Unit, y As Unit, width As Unit, height As Unit, startAngle As Single, sweepAngle As Single, style As Style)</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 horizontal (X) coordinate at which to render the pie (cannot be <b>auto</b>).</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 vertical (Y) coordinate at which to render the pie (cannot be <b>auto</b>).</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 pie.</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 pie.</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 pie's starting angle (in degrees, measured clockwise from the X axis).</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 pie's sweep angle (in degrees, measured clockwise from <code class="paramref">startAngle</code>).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Style.html">Style</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.C1PrintDocument.Style.html#C1_C1Preview_C1PrintDocument_Style">Style</a> to use.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_Style__remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;
</code></pre>
<p>This method can only be used between calls to <a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc()</a> and <a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc()</a>
methods on the current document.
For details, see <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderDirect.html#C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject_System_Object_System_Object_">RenderDirect(Unit, Unit, RenderObject, object, object)</a>.</p>

</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_Style__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a></div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderDirect.html#C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject_System_Object_System_Object_">RenderDirect</a>(<a class="xref" href="C1.C1Preview.Unit.html">Unit</a>, <a class="xref" href="C1.C1Preview.Unit.html">Unit</a>, <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>)</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate</a>()</div>
</div>


<a id="C1_C1Preview_C1PrintDocument_RenderDirectPie_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirectPie*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_LineDef_System_Windows_Media_Color_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirectPie(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,System.Single,System.Single,C1.C1Preview.LineDef,System.Windows.Media.Color)">RenderDirectPie(Unit, Unit, Unit, Unit, float, float, LineDef, Color)</h4>
<div class="markdown level1 summary"><p>Adds a pie to the <a class="xref" href="C1.C1Preview.C1PrintDocument.Body.html#C1_C1Preview_C1PrintDocument_Body">Body</a> of the current document
at a specific position on the current page, and resolves it.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void RenderDirectPie(Unit x, Unit y, Unit width, Unit height, float startAngle, float sweepAngle, LineDef line, Color fillColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub RenderDirectPie(x As Unit, y As Unit, width As Unit, height As Unit, startAngle As Single, sweepAngle As Single, line As LineDef, fillColor 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 horizontal (X) coordinate at which to render the pie (cannot be <b>auto</b>).</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 vertical (Y) coordinate at which to render the pie (cannot be <b>auto</b>).</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 pie.</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 pie.</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 pie's starting angle (in degrees, measured clockwise from the X axis).</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 pie's sweep angle (in degrees, measured clockwise from <code class="paramref">startAngle</code>).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a></td>
      <td><span class="parametername">line</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> to draw the pie with.</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">fillColor</span></td>
      <td><p>The fill color.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_LineDef_System_Windows_Media_Color__remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;
</code></pre>
<p>This method can only be used between calls to <a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc()</a> and <a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc()</a>
methods on the current document.
For details, see <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderDirect.html#C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject_System_Object_System_Object_">RenderDirect(Unit, Unit, RenderObject, object, object)</a>.</p>

</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_LineDef_System_Windows_Media_Color__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a></div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderDirect.html#C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject_System_Object_System_Object_">RenderDirect</a>(<a class="xref" href="C1.C1Preview.Unit.html">Unit</a>, <a class="xref" href="C1.C1Preview.Unit.html">Unit</a>, <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>)</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate</a>()</div>
</div>


<a id="C1_C1Preview_C1PrintDocument_RenderDirectPie_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirectPie*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_LineDef_System_Windows_Media_Brush_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirectPie(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,System.Single,System.Single,C1.C1Preview.LineDef,System.Windows.Media.Brush)">RenderDirectPie(Unit, Unit, Unit, Unit, float, float, LineDef, Brush)</h4>
<div class="markdown level1 summary"><p>Adds a pie to the <a class="xref" href="C1.C1Preview.C1PrintDocument.Body.html#C1_C1Preview_C1PrintDocument_Body">Body</a> of the current document
at a specific position on the current page, and resolves it.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void RenderDirectPie(Unit x, Unit y, Unit width, Unit height, float startAngle, float sweepAngle, LineDef line, Brush fillBrush)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub RenderDirectPie(x As Unit, y As Unit, width As Unit, height As Unit, startAngle As Single, sweepAngle As Single, line As LineDef, fillBrush 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 horizontal (X) coordinate at which to render the pie (cannot be <b>auto</b>).</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 vertical (Y) coordinate at which to render the pie (cannot be <b>auto</b>).</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 pie.</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 pie.</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 pie's starting angle (in degrees, measured clockwise from the X axis).</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 pie's sweep angle (in degrees, measured clockwise from <code class="paramref">startAngle</code>).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a></td>
      <td><span class="parametername">line</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> to draw the pie with.</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">fillBrush</span></td>
      <td><p>The fill brush.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_LineDef_System_Windows_Media_Brush__remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;
</code></pre>
<p>This method can only be used between calls to <a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc()</a> and <a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc()</a>
methods on the current document.
For details, see <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderDirect.html#C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject_System_Object_System_Object_">RenderDirect(Unit, Unit, RenderObject, object, object)</a>.</p>

</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_LineDef_System_Windows_Media_Brush__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a></div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderDirect.html#C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject_System_Object_System_Object_">RenderDirect</a>(<a class="xref" href="C1.C1Preview.Unit.html">Unit</a>, <a class="xref" href="C1.C1Preview.Unit.html">Unit</a>, <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>)</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate</a>()</div>
</div>


<a id="C1_C1Preview_C1PrintDocument_RenderDirectPie_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirectPie*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_LineDef_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirectPie(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,System.Single,System.Single,C1.C1Preview.LineDef)">RenderDirectPie(Unit, Unit, Unit, Unit, float, float, LineDef)</h4>
<div class="markdown level1 summary"><p>Adds a pie to the <a class="xref" href="C1.C1Preview.C1PrintDocument.Body.html#C1_C1Preview_C1PrintDocument_Body">Body</a> of the current document
at a specific position on the current page, and resolves it.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void RenderDirectPie(Unit x, Unit y, Unit width, Unit height, float startAngle, float sweepAngle, LineDef line)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub RenderDirectPie(x As Unit, y As Unit, width As Unit, height As Unit, startAngle As Single, sweepAngle As Single, line 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 horizontal (X) coordinate at which to render the pie (cannot be <b>auto</b>).</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 vertical (Y) coordinate at which to render the pie (cannot be <b>auto</b>).</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 pie.</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 pie.</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 pie's starting angle (in degrees, measured clockwise from the X axis).</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 pie's sweep angle (in degrees, measured clockwise from <code class="paramref">startAngle</code>).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a></td>
      <td><span class="parametername">line</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a> to draw the pie with.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_LineDef__remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;
</code></pre>
<p>This method can only be used between calls to <a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc()</a> and <a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc()</a>
methods on the current document.
For details, see <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderDirect.html#C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject_System_Object_System_Object_">RenderDirect(Unit, Unit, RenderObject, object, object)</a>.</p>

</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_C1_C1Preview_LineDef__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a></div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderDirect.html#C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject_System_Object_System_Object_">RenderDirect</a>(<a class="xref" href="C1.C1Preview.Unit.html">Unit</a>, <a class="xref" href="C1.C1Preview.Unit.html">Unit</a>, <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>)</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate</a>()</div>
</div>


<a id="C1_C1Preview_C1PrintDocument_RenderDirectPie_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirectPie*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_System_Windows_Media_Color_C1_C1Preview_Unit_System_Windows_Media_Color_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirectPie(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,System.Single,System.Single,System.Windows.Media.Color,C1.C1Preview.Unit,System.Windows.Media.Color)">RenderDirectPie(Unit, Unit, Unit, Unit, float, float, Color, Unit, Color)</h4>
<div class="markdown level1 summary"><p>Adds a pie to the <a class="xref" href="C1.C1Preview.C1PrintDocument.Body.html#C1_C1Preview_C1PrintDocument_Body">Body</a> of the current document
at a specific position on the current page, and resolves it.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void RenderDirectPie(Unit x, Unit y, Unit width, Unit height, float startAngle, float sweepAngle, Color lineColor, Unit lineThickness, Color fillColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub RenderDirectPie(x As Unit, y As Unit, width As Unit, height As Unit, startAngle As Single, sweepAngle As Single, lineColor As Color, lineThickness As Unit, fillColor 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 horizontal (X) coordinate at which to render the pie (cannot be <b>auto</b>).</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 vertical (Y) coordinate at which to render the pie (cannot be <b>auto</b>).</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 pie.</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 pie.</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 pie's starting angle (in degrees, measured clockwise from the X axis).</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 pie's sweep angle (in degrees, measured clockwise from <code class="paramref">startAngle</code>).</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">lineColor</span></td>
      <td><p>The line color.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">lineThickness</span></td>
      <td><p>The line thickness.</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">fillColor</span></td>
      <td><p>The fill color.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_System_Windows_Media_Color_C1_C1Preview_Unit_System_Windows_Media_Color__remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;
</code></pre>
<p>This method can only be used between calls to <a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc()</a> and <a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc()</a>
methods on the current document.
For details, see <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderDirect.html#C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject_System_Object_System_Object_">RenderDirect(Unit, Unit, RenderObject, object, object)</a>.</p>

</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_System_Windows_Media_Color_C1_C1Preview_Unit_System_Windows_Media_Color__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a></div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderDirect.html#C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject_System_Object_System_Object_">RenderDirect</a>(<a class="xref" href="C1.C1Preview.Unit.html">Unit</a>, <a class="xref" href="C1.C1Preview.Unit.html">Unit</a>, <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>)</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate</a>()</div>
</div>


<a id="C1_C1Preview_C1PrintDocument_RenderDirectPie_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirectPie*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_System_Windows_Media_Color_C1_C1Preview_Unit_" data-uid="C1.C1Preview.C1PrintDocument.RenderDirectPie(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,System.Single,System.Single,System.Windows.Media.Color,C1.C1Preview.Unit)">RenderDirectPie(Unit, Unit, Unit, Unit, float, float, Color, Unit)</h4>
<div class="markdown level1 summary"><p>Adds a pie to the <a class="xref" href="C1.C1Preview.C1PrintDocument.Body.html#C1_C1Preview_C1PrintDocument_Body">Body</a> of the current document
at a specific position on the current page, and resolves it.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void RenderDirectPie(Unit x, Unit y, Unit width, Unit height, float startAngle, float sweepAngle, Color lineColor, Unit lineThickness)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub RenderDirectPie(x As Unit, y As Unit, width As Unit, height As Unit, startAngle As Single, sweepAngle As Single, lineColor As Color, lineThickness 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 horizontal (X) coordinate at which to render the pie (cannot be <b>auto</b>).</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 vertical (Y) coordinate at which to render the pie (cannot be <b>auto</b>).</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 pie.</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 pie.</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 pie's starting angle (in degrees, measured clockwise from the X axis).</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 pie's sweep angle (in degrees, measured clockwise from <code class="paramref">startAngle</code>).</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">lineColor</span></td>
      <td><p>The line color.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">lineThickness</span></td>
      <td><p>The line thickness.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_System_Windows_Media_Color_C1_C1Preview_Unit__remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;
</code></pre>
<p>This method can only be used between calls to <a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc()</a> and <a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc()</a>
methods on the current document.
For details, see <a class="xref" href="C1.C1Preview.C1PrintDocument.RenderDirect.html#C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject_System_Object_System_Object_">RenderDirect(Unit, Unit, RenderObject, object, object)</a>.</p>

</div>
<h5 id="C1_C1Preview_C1PrintDocument_RenderDirectPie_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_System_Single_System_Single_System_Windows_Media_Color_C1_C1Preview_Unit__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.RenderPie.html">RenderPie</a></div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.RenderDirect.html#C1_C1Preview_C1PrintDocument_RenderDirect_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_RenderObject_System_Object_System_Object_">RenderDirect</a>(<a class="xref" href="C1.C1Preview.Unit.html">Unit</a>, <a class="xref" href="C1.C1Preview.Unit.html">Unit</a>, <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>)</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.StartDoc.html#C1_C1Preview_C1PrintDocument_StartDoc">StartDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.EndDoc.html#C1_C1Preview_C1PrintDocument_EndDoc">EndDoc</a>()</div>
    <div><a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate</a>()</div>
</div>
</div>
