# GrapeCity.Documents.Svg.GcSvgGraphics.ToSvgDocument

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Svg_GcSvgGraphics_ToSvgDocument_" data-uid="GrapeCity.Documents.Svg.GcSvgGraphics.ToSvgDocument*">ToSvgDocument Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Svg_GcSvgGraphics_ToSvgDocument_" data-uid="GrapeCity.Documents.Svg.GcSvgGraphics.ToSvgDocument*"></a>
<h4 id="GrapeCity_Documents_Svg_GcSvgGraphics_ToSvgDocument" data-uid="GrapeCity.Documents.Svg.GcSvgGraphics.ToSvgDocument">ToSvgDocument()</h4>
<div class="markdown level1 summary"><p>Generates a <a class="xref" href="GrapeCity.Documents.Svg.GcSvgDocument.html">GcSvgDocument</a> from this graphics,
and clears its command list afterwards.</p>
<p>
Note that if a license key has not been applied
(see <a class="xref" href="GrapeCity.Documents.Svg.GcSvgGraphics.SetLicenseKey.html#GrapeCity_Documents_Svg_GcSvgGraphics_SetLicenseKey_System_String_">SetLicenseKey(string)</a> and <a class="xref" href="GrapeCity.Documents.Svg.GcSvgGraphics.ApplyLicenseKey.html#GrapeCity_Documents_Svg_GcSvgGraphics_ApplyLicenseKey_System_String_">ApplyLicenseKey(string)</a> methods),
only a few calls of <b>ToSvgDocument()</b> are allowed, after which an exception will be thrown.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GcSvgDocument ToSvgDocument()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ToSvgDocument() As GcSvgDocument</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Svg.GcSvgDocument.html">GcSvgDocument</a></td>
      <td><p>The generated SVG document.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
