# C1.Util.SvgRendering.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_SvgRendering__ctor_" data-uid="C1.Util.SvgRendering.#ctor*">SvgRendering Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_SvgRendering__ctor_" data-uid="C1.Util.SvgRendering.#ctor*"></a>
<h4 id="C1_Util_SvgRendering__ctor_System_Single_System_Single_System_Xml_XmlWriter_" data-uid="C1.Util.SvgRendering.#ctor(System.Single,System.Single,System.Xml.XmlWriter)">SvgRendering(float, float, XmlWriter)</h4>
<div class="markdown level1 summary"><p>Support SVG rendering interface.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SvgRendering(float width, float height, XmlWriter doc = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(width As Single, height As Single, Optional doc As XmlWriter = Nothing)</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="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the SVG viewport, in device-independent pixels (1/96ths of an inch).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the SVG viewport, in device-independent pixels (1/96ths of an inch).</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">XmlWriter</span></td>
      <td><span class="parametername">doc</span></td>
      <td><p>The external <span class="xref">System.Xml.XmlWriter</span> object, by default used  internal.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
