# C1.Win.Document.GraphicsHolder.FromGraphics

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Document_GraphicsHolder_FromGraphics_" data-uid="C1.Win.Document.GraphicsHolder.FromGraphics*">FromGraphics Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Document_GraphicsHolder_FromGraphics_" data-uid="C1.Win.Document.GraphicsHolder.FromGraphics*"></a>
<h4 id="C1_Win_Document_GraphicsHolder_FromGraphics_System_Drawing_Graphics_" data-uid="C1.Win.Document.GraphicsHolder.FromGraphics(System.Drawing.Graphics)">FromGraphics(Graphics)</h4>
<div class="markdown level1 summary"><p>Creates a graphics holder from a graphics instance.
When the holder is disposed, the graphics is left alone (i.e. NOT disposed).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GraphicsHolder FromGraphics(Graphics g)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FromGraphics(g As Graphics) As GraphicsHolder</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">Graphics</span></td>
      <td><span class="parametername">g</span></td>
      <td><p>The graphics to store in the new holder.</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="C1.Win.Document.GraphicsHolder.html">GraphicsHolder</a></td>
      <td><p>The new instance of the graphics holder.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
