# GrapeCity.Documents.Drawing.GcGraphics.CreateClipRegion

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Drawing_GcGraphics_CreateClipRegion_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.CreateClipRegion*">CreateClipRegion Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Drawing_GcGraphics_CreateClipRegion_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.CreateClipRegion*"></a>
<h4 id="GrapeCity_Documents_Drawing_GcGraphics_CreateClipRegion_GrapeCity_Documents_Drawing_IPath_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.CreateClipRegion(GrapeCity.Documents.Drawing.IPath)">CreateClipRegion(IPath)</h4>
<div class="markdown level1 summary"><p>Creates a clip region from a graphics path.</p>
<p>
Use <a class="xref" href="GrapeCity.Documents.Drawing.GcGraphics.PushClip.html#GrapeCity_Documents_Drawing_GcGraphics_PushClip_GrapeCity_Documents_Drawing_IClipRegion_">PushClip(IClipRegion)</a> and <a class="xref" href="GrapeCity.Documents.Drawing.GcGraphics.PopClip.html#GrapeCity_Documents_Drawing_GcGraphics_PopClip_GrapeCity_Documents_Drawing_IClipRegion_">PopClip(IClipRegion)</a> to set/remove clipping.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IClipRegion CreateClipRegion(IPath graphicsPath)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CreateClipRegion(graphicsPath As IPath) As IClipRegion</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.Drawing.IPath.html">IPath</a></td>
      <td><span class="parametername">graphicsPath</span></td>
      <td><p>The path to create the clip region from.</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.Documents.Drawing.IClipRegion.html">IClipRegion</a></td>
      <td><p>The created clip region.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Drawing_GcGraphics_CreateClipRegion_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.CreateClipRegion*"></a>
<h4 id="GrapeCity_Documents_Drawing_GcGraphics_CreateClipRegion_System_Drawing_RectangleF_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.CreateClipRegion(System.Drawing.RectangleF)">CreateClipRegion(RectangleF)</h4>
<div class="markdown level1 summary"><p>Creates a clip region from a rectangle.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IClipRegion CreateClipRegion(RectangleF bounds)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CreateClipRegion(bounds As RectangleF) As IClipRegion</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.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">bounds</span></td>
      <td><p>The rectangle to create the clip region from.</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.Documents.Drawing.IClipRegion.html">IClipRegion</a></td>
      <td><p>The created clip region.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
