# C1.Util.DX.Direct2D.GdiInteropRenderTarget

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct2D_GdiInteropRenderTarget" data-uid="C1.Util.DX.Direct2D.GdiInteropRenderTarget" class="text-break">GdiInteropRenderTarget Class
</h1>
  <div class="markdown level0 summary"><p>ID2D1GdiInteropRenderTarget</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Util.DX.DisposeBase.html">DisposeBase</a></div>
    <div class="level2"><a class="xref" href="C1.Util.DX.CppObject.html">CppObject</a></div>
    <div class="level3"><a class="xref" href="C1.Util.DX.ComObject.html">ComObject</a></div>
    <div class="level4"><span class="xref">GdiInteropRenderTarget</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="C1.Util.DX.IUnknown.html">IUnknown</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.Direct2D.html">C1.Util.DX.Direct2D</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.DX.10.dll</h6>
  <h5 id="C1_Util_DX_Direct2D_GdiInteropRenderTarget_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;e0db51c3-6f77-4bae-b3d5-e47509b35838&quot;)]
public class GdiInteropRenderTarget : ComObject, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;e0db51c3-6f77-4bae-b3d5-e47509b35838&quot;)&gt;
Public Class GdiInteropRenderTarget
    Inherits ComObject
    Implements IDisposable, IUnknown</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_GdiInteropRenderTarget__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct2D.GdiInteropRenderTarget.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct2D.GdiInteropRenderTarget.-ctor.html#C1_Util_DX_Direct2D_GdiInteropRenderTarget__ctor_System_IntPtr_">GdiInteropRenderTarget(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.GdiInteropRenderTarget.html">GdiInteropRenderTarget</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_GdiInteropRenderTarget_GetDC_C1_Util_DX_Direct2D_DeviceContextInitializeMode_" data-uid="C1.Util.DX.Direct2D.GdiInteropRenderTarget.GetDC(C1.Util.DX.Direct2D.DeviceContextInitializeMode)">
          <a class="xref" href="C1.Util.DX.Direct2D.GdiInteropRenderTarget.GetDC.html#C1_Util_DX_Direct2D_GdiInteropRenderTarget_GetDC_C1_Util_DX_Direct2D_DeviceContextInitializeMode_">GetDC(DeviceContextInitializeMode)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1GdiInteropRenderTarget::GetDC([In] D2D1_DC_INITIALIZE_MODE mode,[Out] HDC* hdc)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_GdiInteropRenderTarget_ReleaseDC" data-uid="C1.Util.DX.Direct2D.GdiInteropRenderTarget.ReleaseDC">
          <a class="xref" href="C1.Util.DX.Direct2D.GdiInteropRenderTarget.ReleaseDC.html#C1_Util_DX_Direct2D_GdiInteropRenderTarget_ReleaseDC">ReleaseDC()</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates that drawing with the device context is finished.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_GdiInteropRenderTarget_ReleaseDC_System_Nullable_C1_Util_DX_RectL__" data-uid="C1.Util.DX.Direct2D.GdiInteropRenderTarget.ReleaseDC(System.Nullable{C1.Util.DX.RectL})">
          <a class="xref" href="C1.Util.DX.Direct2D.GdiInteropRenderTarget.ReleaseDC.html#C1_Util_DX_Direct2D_GdiInteropRenderTarget_ReleaseDC_System_Nullable_C1_Util_DX_RectL__">ReleaseDC(RectL?)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1GdiInteropRenderTarget::ReleaseDC([In, Optional] const RECT* update)</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_GdiInteropRenderTarget_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_GdiInteropRenderTarget" data-uid="C1.Util.DX.Direct2D.GdiInteropRenderTarget.op_Explicit(System.IntPtr)~C1.Util.DX.Direct2D.GdiInteropRenderTarget">
          <a class="xref" href="C1.Util.DX.Direct2D.GdiInteropRenderTarget.op_Explicit.html#C1_Util_DX_Direct2D_GdiInteropRenderTarget_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_GdiInteropRenderTarget">explicit operator GdiInteropRenderTarget(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a> to <a class="xref" href="C1.Util.DX.Direct2D.GdiInteropRenderTarget.html">GdiInteropRenderTarget</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
