# GrapeCity.Drawing.IDrawingContext.MeasureVisualShape

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Drawing_IDrawingContext_MeasureVisualShape_" data-uid="GrapeCity.Drawing.IDrawingContext.MeasureVisualShape*">MeasureVisualShape Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Drawing_IDrawingContext_MeasureVisualShape_" data-uid="GrapeCity.Drawing.IDrawingContext.MeasureVisualShape*"></a>
<h4 id="GrapeCity_Drawing_IDrawingContext_MeasureVisualShape_GrapeCity_Drawing_IVisualShape_" data-uid="GrapeCity.Drawing.IDrawingContext.MeasureVisualShape(GrapeCity.Drawing.IVisualShape)">MeasureVisualShape(IVisualShape)</h4>
<div class="markdown level1 summary"><p>Measures the boundary of the specified <span class="xref">GrapeCity.Drawing.IVisualShape</span> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">Rectangle MeasureVisualShape(IVisualShape visualShape)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function MeasureVisualShape(visualShape As IVisualShape) As Rectangle</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><span class="xref">IVisualShape</span></td>
      <td><span class="parametername">visualShape</span></td>
      <td><p>The geometry shape.</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="GrapeCity.Drawing.Rectangle.html">Rectangle</a></td>
      <td><p>The boundary of the geometry drawing.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
