# GrapeCity.Documents.Svg.GcSvgDocument.Save

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Svg_GcSvgDocument_Save_" data-uid="GrapeCity.Documents.Svg.GcSvgDocument.Save*">Save Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Svg_GcSvgDocument_Save_" data-uid="GrapeCity.Documents.Svg.GcSvgDocument.Save*"></a>
<h4 id="GrapeCity_Documents_Svg_GcSvgDocument_Save_System_String_System_Xml_XmlWriterSettings_" data-uid="GrapeCity.Documents.Svg.GcSvgDocument.Save(System.String,System.Xml.XmlWriterSettings)">Save(string, XmlWriterSettings)</h4>
<div class="markdown level1 summary"><p>Saves the current <a class="xref" href="GrapeCity.Documents.Svg.GcSvgDocument.html">GcSvgDocument</a> to a file in SVG format.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Save(string path, XmlWriterSettings settings = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Save(path As String, Optional settings As XmlWriterSettings = 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.string">string</a></td>
      <td><span class="parametername">path</span></td>
      <td><p>The output file path.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">XmlWriterSettings</span></td>
      <td><span class="parametername">settings</span></td>
      <td><p>The output XML formatting settings.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Svg_GcSvgDocument_Save_" data-uid="GrapeCity.Documents.Svg.GcSvgDocument.Save*"></a>
<h4 id="GrapeCity_Documents_Svg_GcSvgDocument_Save_System_IO_Stream_System_Xml_XmlWriterSettings_" data-uid="GrapeCity.Documents.Svg.GcSvgDocument.Save(System.IO.Stream,System.Xml.XmlWriterSettings)">Save(Stream, XmlWriterSettings)</h4>
<div class="markdown level1 summary"><p>Saves the current <a class="xref" href="GrapeCity.Documents.Svg.GcSvgDocument.html">GcSvgDocument</a> to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a> in SVG format.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Save(Stream stream, XmlWriterSettings settings = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Save(stream As Stream, Optional settings As XmlWriterSettings = 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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The output stream.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">XmlWriterSettings</span></td>
      <td><span class="parametername">settings</span></td>
      <td><p>The output XML formatting settings.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Svg_GcSvgDocument_Save_" data-uid="GrapeCity.Documents.Svg.GcSvgDocument.Save*"></a>
<h4 id="GrapeCity_Documents_Svg_GcSvgDocument_Save_System_Text_StringBuilder_System_Xml_XmlWriterSettings_" data-uid="GrapeCity.Documents.Svg.GcSvgDocument.Save(System.Text.StringBuilder,System.Xml.XmlWriterSettings)">Save(StringBuilder, XmlWriterSettings)</h4>
<div class="markdown level1 summary"><p>Saves the current <a class="xref" href="GrapeCity.Documents.Svg.GcSvgDocument.html">GcSvgDocument</a> to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.text.stringbuilder">StringBuilder</a> in SVG format.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Save(StringBuilder sb, XmlWriterSettings settings = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Save(sb As StringBuilder, Optional settings As XmlWriterSettings = 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.text.stringbuilder">StringBuilder</a></td>
      <td><span class="parametername">sb</span></td>
      <td><p>The output <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.text.stringbuilder">StringBuilder</a>.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">XmlWriterSettings</span></td>
      <td><span class="parametername">settings</span></td>
      <td><p>The output XML formatting settings.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Svg_GcSvgDocument_Save_" data-uid="GrapeCity.Documents.Svg.GcSvgDocument.Save*"></a>
<h4 id="GrapeCity_Documents_Svg_GcSvgDocument_Save_System_IO_TextWriter_System_Xml_XmlWriterSettings_" data-uid="GrapeCity.Documents.Svg.GcSvgDocument.Save(System.IO.TextWriter,System.Xml.XmlWriterSettings)">Save(TextWriter, XmlWriterSettings)</h4>
<div class="markdown level1 summary"><p>Saves the current <a class="xref" href="GrapeCity.Documents.Svg.GcSvgDocument.html">GcSvgDocument</a> to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.textwriter">TextWriter</a> in SVG format.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Save(TextWriter tw, XmlWriterSettings settings = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Save(tw As TextWriter, Optional settings As XmlWriterSettings = 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.io.textwriter">TextWriter</a></td>
      <td><span class="parametername">tw</span></td>
      <td><p>The output <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.textwriter">TextWriter</a>.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">XmlWriterSettings</span></td>
      <td><span class="parametername">settings</span></td>
      <td><p>The output XML formatting settings.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
