# C1.Win.Document.Util.C1GdiGraphics.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Document_Util_C1GdiGraphics__ctor_" data-uid="C1.Win.Document.Util.C1GdiGraphics.#ctor*">C1GdiGraphics Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Document_Util_C1GdiGraphics__ctor_" data-uid="C1.Win.Document.Util.C1GdiGraphics.#ctor*"></a>
<h4 id="C1_Win_Document_Util_C1GdiGraphics__ctor_System_Drawing_Graphics_C1_Util_DX_DirectWrite_Factory_" data-uid="C1.Win.Document.Util.C1GdiGraphics.#ctor(System.Drawing.Graphics,C1.Util.DX.DirectWrite.Factory)">C1GdiGraphics(Graphics, Factory)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.html">C1GdiGraphics</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1GdiGraphics(Graphics graphics, Factory dwFactory)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(graphics As Graphics, dwFactory As Factory)</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">graphics</span></td>
      <td><p>A <span class="xref">System.Drawing.Graphics</span> to be assigned.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Factory</span></td>
      <td><span class="parametername">dwFactory</span></td>
      <td><p>A <span class="xref">C1.Util.DX.DirectWrite.Factory</span> to be assigned.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Document_Util_C1GdiGraphics__ctor_" data-uid="C1.Win.Document.Util.C1GdiGraphics.#ctor*"></a>
<h4 id="C1_Win_Document_Util_C1GdiGraphics__ctor_System_Drawing_Graphics_" data-uid="C1.Win.Document.Util.C1GdiGraphics.#ctor(System.Drawing.Graphics)">C1GdiGraphics(Graphics)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Document.Util.C1GdiGraphics.html">C1GdiGraphics</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1GdiGraphics(Graphics graphics)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(graphics As Graphics)</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">graphics</span></td>
      <td><p>A <span class="xref">System.Drawing.Graphics</span> to be assigned.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
