# GrapeCity.Documents.Drawing.GcGraphics.MeasureSvg

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Drawing_GcGraphics_MeasureSvg_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.MeasureSvg*">MeasureSvg Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Drawing_GcGraphics_MeasureSvg_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.MeasureSvg*"></a>
<h4 id="GrapeCity_Documents_Drawing_GcGraphics_MeasureSvg_GrapeCity_Documents_Svg_GcSvgDocument_System_Drawing_PointF_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.MeasureSvg(GrapeCity.Documents.Svg.GcSvgDocument,System.Drawing.PointF)">MeasureSvg(GcSvgDocument, PointF)</h4>
<div class="markdown level1 summary"><p>Calculates the content bounds of a specified SVG document when its viewport is drawn at a specified point.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RectangleF MeasureSvg(GcSvgDocument svgDocument, PointF viewportPosition)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function MeasureSvg(svgDocument As GcSvgDocument, viewportPosition As PointF) As RectangleF</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="GrapeCity.Documents.Svg.GcSvgDocument.html">GcSvgDocument</a></td>
      <td><span class="parametername">svgDocument</span></td>
      <td><p>The SVG document to measure.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.pointf">PointF</a></td>
      <td><span class="parametername">viewportPosition</span></td>
      <td><p>The coordinates for the top-left corner of SVG viewport.</p>
</td>
    </tr>
  </tbody>
</table>
<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="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><p>The content bounds of the resulting image.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
