# C1.Util.DX.Direct2D.DrawingStateBlock

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct2D_DrawingStateBlock" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock" class="text-break">DrawingStateBlock Class
</h1>
  <div class="markdown level0 summary"><p>ID2D1DrawingStateBlock</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"><span class="xref">DrawingStateBlock</span></div>
      <div class="level6"><a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock1.html">DrawingStateBlock1</a></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_DrawingStateBlock_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;28506e39-ebf6-46a1-bb47-fd85565ab957&quot;)]
public class DrawingStateBlock : Resource, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;28506e39-ebf6-46a1-bb47-fd85565ab957&quot;)&gt;
Public Class DrawingStateBlock
    Inherits Resource
    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_DrawingStateBlock__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock.-ctor.html#C1_Util_DX_Direct2D_DrawingStateBlock__ctor_System_IntPtr_">DrawingStateBlock(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock.html">DrawingStateBlock</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</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_DrawingStateBlock_Description" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock.Description">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock.Description.html#C1_Util_DX_Direct2D_DrawingStateBlock_Description">Description</a>
        </td>
        <td class="markdown level1 summary"><p>GetDescription / SetDescription</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_DrawingStateBlock_Create_C1_Util_DX_Direct2D_Factory_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock.Create(C1.Util.DX.Direct2D.Factory)">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock.Create.html#C1_Util_DX_Direct2D_DrawingStateBlock_Create_C1_Util_DX_Direct2D_Factory_">Create(Factory)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock.html">DrawingStateBlock</a> that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawingStateBlock_Create_C1_Util_DX_Direct2D_Factory_C1_Util_DX_Direct2D_DrawingStateDescription_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock.Create(C1.Util.DX.Direct2D.Factory,C1.Util.DX.Direct2D.DrawingStateDescription)">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock.Create.html#C1_Util_DX_Direct2D_DrawingStateBlock_Create_C1_Util_DX_Direct2D_Factory_C1_Util_DX_Direct2D_DrawingStateDescription_">Create(Factory, DrawingStateDescription)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock.html">DrawingStateBlock</a> that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawingStateBlock_Create_C1_Util_DX_Direct2D_Factory_C1_Util_DX_DirectWrite_RenderingParams_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock.Create(C1.Util.DX.Direct2D.Factory,C1.Util.DX.DirectWrite.RenderingParams)">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock.Create.html#C1_Util_DX_Direct2D_DrawingStateBlock_Create_C1_Util_DX_Direct2D_Factory_C1_Util_DX_DirectWrite_RenderingParams_">Create(Factory, RenderingParams)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock.html">DrawingStateBlock</a> that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawingStateBlock_Create_C1_Util_DX_Direct2D_Factory_System_Nullable_C1_Util_DX_Direct2D_DrawingStateDescription__C1_Util_DX_DirectWrite_RenderingParams_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock.Create(C1.Util.DX.Direct2D.Factory,System.Nullable{C1.Util.DX.Direct2D.DrawingStateDescription},C1.Util.DX.DirectWrite.RenderingParams)">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock.Create.html#C1_Util_DX_Direct2D_DrawingStateBlock_Create_C1_Util_DX_Direct2D_Factory_System_Nullable_C1_Util_DX_Direct2D_DrawingStateDescription__C1_Util_DX_DirectWrite_RenderingParams_">Create(Factory, DrawingStateDescription?, RenderingParams)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock.html">DrawingStateBlock</a> that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawingStateBlock_GetDescription_C1_Util_DX_Direct2D_DrawingStateDescription__" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock.GetDescription(C1.Util.DX.Direct2D.DrawingStateDescription@)">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock.GetDescription.html#C1_Util_DX_Direct2D_DrawingStateBlock_GetDescription_C1_Util_DX_Direct2D_DrawingStateDescription__">GetDescription(out DrawingStateDescription)</a>
        </td>
        <td class="markdown level1 summary"><p>void ID2D1DrawingStateBlock::GetDescription([Out] D2D1_DRAWING_STATE_DESCRIPTION* stateDescription)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawingStateBlock_GetTextRenderingParams" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock.GetTextRenderingParams">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock.GetTextRenderingParams.html#C1_Util_DX_Direct2D_DrawingStateBlock_GetTextRenderingParams">GetTextRenderingParams()</a>
        </td>
        <td class="markdown level1 summary"><p>void ID2D1DrawingStateBlock::GetTextRenderingParams([Out, Optional] IDWriteRenderingParams** textRenderingParams)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawingStateBlock_SetDescription_C1_Util_DX_Direct2D_DrawingStateDescription__" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock.SetDescription(C1.Util.DX.Direct2D.DrawingStateDescription@)">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock.SetDescription.html#C1_Util_DX_Direct2D_DrawingStateBlock_SetDescription_C1_Util_DX_Direct2D_DrawingStateDescription__">SetDescription(ref DrawingStateDescription)</a>
        </td>
        <td class="markdown level1 summary"><p>void ID2D1DrawingStateBlock::SetDescription([In] const D2D1_DRAWING_STATE_DESCRIPTION* stateDescription)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawingStateBlock_SetTextRenderingParams_C1_Util_DX_DirectWrite_RenderingParams_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock.SetTextRenderingParams(C1.Util.DX.DirectWrite.RenderingParams)">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock.SetTextRenderingParams.html#C1_Util_DX_Direct2D_DrawingStateBlock_SetTextRenderingParams_C1_Util_DX_DirectWrite_RenderingParams_">SetTextRenderingParams(RenderingParams)</a>
        </td>
        <td class="markdown level1 summary"><p>void ID2D1DrawingStateBlock::SetTextRenderingParams([In, Optional] IDWriteRenderingParams* textRenderingParams)</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_DrawingStateBlock_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_DrawingStateBlock" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock.op_Explicit(System.IntPtr)~C1.Util.DX.Direct2D.DrawingStateBlock">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock.op_Explicit.html#C1_Util_DX_Direct2D_DrawingStateBlock_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_DrawingStateBlock">explicit operator DrawingStateBlock(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.DrawingStateBlock.html">DrawingStateBlock</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
