# C1.WPF.Core.Svg.C1SvgHelper.DrawSvg

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Core_Svg_C1SvgHelper_DrawSvg_" data-uid="C1.WPF.Core.Svg.C1SvgHelper.DrawSvg*">DrawSvg Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Core_Svg_C1SvgHelper_DrawSvg_" data-uid="C1.WPF.Core.Svg.C1SvgHelper.DrawSvg*"></a>
<h4 id="C1_WPF_Core_Svg_C1SvgHelper_DrawSvg_System_Windows_Media_DrawingContext_C1_WebStandards_Svg_C1SvgDoc_System_Windows_Media_Brush_System_Nullable_System_Windows_Rect__" data-uid="C1.WPF.Core.Svg.C1SvgHelper.DrawSvg(System.Windows.Media.DrawingContext,C1.WebStandards.Svg.C1SvgDoc,System.Windows.Media.Brush,System.Nullable{System.Windows.Rect})">DrawSvg(DrawingContext, C1SvgDoc, Brush, Rect?)</h4>
<div class="markdown level1 summary"><p>Renders a <span class="xref">C1.WebStandards.Svg.C1SvgDoc</span> into the specified <code class="paramref">drawingContext</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void DrawSvg(this DrawingContext drawingContext, C1SvgDoc doc, Brush currentColor, Rect? renderBox = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub DrawSvg(drawingContext As DrawingContext, doc As C1SvgDoc, currentColor As Brush, Optional renderBox As Rect? = 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.windows.media.drawingcontext">DrawingContext</a></td>
      <td><span class="parametername">drawingContext</span></td>
      <td><p>The context where the Svg is drawn.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">C1SvgDoc</span></td>
      <td><span class="parametername">doc</span></td>
      <td><p>The document to render.</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">currentColor</span></td>
      <td><p>The current color.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Rect</span>?</td>
      <td><span class="parametername">renderBox</span></td>
      <td><p>The rectangle in layout coordinates where the Svg is drawn</p>
</td>
    </tr>
  </tbody>
</table>
</div>
