# C1.Util.DX.Direct2D.WindowRenderTarget

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct2D_WindowRenderTarget" data-uid="C1.Util.DX.Direct2D.WindowRenderTarget" class="text-break">WindowRenderTarget Class
</h1>
  <div class="markdown level0 summary"><p>ID2D1HwndRenderTarget</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"><a class="xref" href="C1.Util.DX.Direct2D.Resource.html">Resource</a></div>
    <div class="level5"><a class="xref" href="C1.Util.DX.Direct2D.RenderTarget.html">RenderTarget</a></div>
    <div class="level6"><span class="xref">WindowRenderTarget</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_WindowRenderTarget_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;2cd90698-12e2-11dc-9fed-001143a055f9&quot;)]
public class WindowRenderTarget : RenderTarget, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;2cd90698-12e2-11dc-9fed-001143a055f9&quot;)&gt;
Public Class WindowRenderTarget
    Inherits RenderTarget
    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_WindowRenderTarget__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct2D.WindowRenderTarget.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct2D.WindowRenderTarget.-ctor.html#C1_Util_DX_Direct2D_WindowRenderTarget__ctor_System_IntPtr_">WindowRenderTarget(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.WindowRenderTarget.html">WindowRenderTarget</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_WindowRenderTarget_CheckWindowState" data-uid="C1.Util.DX.Direct2D.WindowRenderTarget.CheckWindowState">
          <a class="xref" href="C1.Util.DX.Direct2D.WindowRenderTarget.CheckWindowState.html#C1_Util_DX_Direct2D_WindowRenderTarget_CheckWindowState">CheckWindowState()</a>
        </td>
        <td class="markdown level1 summary"><p>D2D1_WINDOW_STATE ID2D1HwndRenderTarget::CheckWindowState()</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_WindowRenderTarget_Create_C1_Util_DX_Direct2D_Factory_C1_Util_DX_Direct2D_RenderTargetProperties_C1_Util_DX_Direct2D_HwndRenderTargetProperties_" data-uid="C1.Util.DX.Direct2D.WindowRenderTarget.Create(C1.Util.DX.Direct2D.Factory,C1.Util.DX.Direct2D.RenderTargetProperties,C1.Util.DX.Direct2D.HwndRenderTargetProperties)">
          <a class="xref" href="C1.Util.DX.Direct2D.WindowRenderTarget.Create.html#C1_Util_DX_Direct2D_WindowRenderTarget_Create_C1_Util_DX_Direct2D_Factory_C1_Util_DX_Direct2D_RenderTargetProperties_C1_Util_DX_Direct2D_HwndRenderTargetProperties_">Create(Factory, RenderTargetProperties, HwndRenderTargetProperties)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.WindowRenderTarget.html">WindowRenderTarget</a>, a render target that renders to a window.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_WindowRenderTarget_GetHwnd" data-uid="C1.Util.DX.Direct2D.WindowRenderTarget.GetHwnd">
          <a class="xref" href="C1.Util.DX.Direct2D.WindowRenderTarget.GetHwnd.html#C1_Util_DX_Direct2D_WindowRenderTarget_GetHwnd">GetHwnd()</a>
        </td>
        <td class="markdown level1 summary"><p>HWND ID2D1HwndRenderTarget::GetHwnd()</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_WindowRenderTarget_Resize_C1_Util_DX_Size2L_" data-uid="C1.Util.DX.Direct2D.WindowRenderTarget.Resize(C1.Util.DX.Size2L)">
          <a class="xref" href="C1.Util.DX.Direct2D.WindowRenderTarget.Resize.html#C1_Util_DX_Direct2D_WindowRenderTarget_Resize_C1_Util_DX_Size2L_">Resize(Size2L)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1HwndRenderTarget::Resize([In] const D2D_SIZE_U* pixelSize)</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_WindowRenderTarget_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_WindowRenderTarget" data-uid="C1.Util.DX.Direct2D.WindowRenderTarget.op_Explicit(System.IntPtr)~C1.Util.DX.Direct2D.WindowRenderTarget">
          <a class="xref" href="C1.Util.DX.Direct2D.WindowRenderTarget.op_Explicit.html#C1_Util_DX_Direct2D_WindowRenderTarget_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_WindowRenderTarget">explicit operator WindowRenderTarget(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.WindowRenderTarget.html">WindowRenderTarget</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
