# C1.Util.DX.Direct2D.DrawingStateBlock.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_DrawingStateBlock_Create_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_DrawingStateBlock_Create_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock.Create*"></a>
<h4 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)">Create(Factory)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static DrawingStateBlock Create(Factory factory)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(factory As Factory) As DrawingStateBlock</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><a class="xref" href="C1.Util.DX.Direct2D.Factory.html">Factory</a></td>
      <td><span class="parametername">factory</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.Factory.html">Factory</a></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.Util.DX.Direct2D.DrawingStateBlock.html">DrawingStateBlock</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_DrawingStateBlock_Create_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock.Create*"></a>
<h4 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)">Create(Factory, DrawingStateDescription)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static DrawingStateBlock Create(Factory factory, DrawingStateDescription drawingStateDescription)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(factory As Factory, drawingStateDescription As DrawingStateDescription) As DrawingStateBlock</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><a class="xref" href="C1.Util.DX.Direct2D.Factory.html">Factory</a></td>
      <td><span class="parametername">factory</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.Factory.html">Factory</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.DrawingStateDescription.html">DrawingStateDescription</a></td>
      <td><span class="parametername">drawingStateDescription</span></td>
      <td><p>A structure that contains antialiasing, transform, and tags  information.</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.Util.DX.Direct2D.DrawingStateBlock.html">DrawingStateBlock</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_DrawingStateBlock_Create_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock.Create*"></a>
<h4 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)">Create(Factory, RenderingParams)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static DrawingStateBlock Create(Factory factory, RenderingParams textRenderingParams)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(factory As Factory, textRenderingParams As RenderingParams) As DrawingStateBlock</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><a class="xref" href="C1.Util.DX.Direct2D.Factory.html">Factory</a></td>
      <td><span class="parametername">factory</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.Factory.html">Factory</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.RenderingParams.html">RenderingParams</a></td>
      <td><span class="parametername">textRenderingParams</span></td>
      <td><p>Optional text parameters that indicate how text should be rendered.</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.Util.DX.Direct2D.DrawingStateBlock.html">DrawingStateBlock</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_DrawingStateBlock_Create_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock.Create*"></a>
<h4 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)">Create(Factory, DrawingStateDescription?, RenderingParams)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static DrawingStateBlock Create(Factory factory, DrawingStateDescription? drawingStateDescription, RenderingParams textRenderingParams)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(factory As Factory, drawingStateDescription As DrawingStateDescription?, textRenderingParams As RenderingParams) As DrawingStateBlock</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><a class="xref" href="C1.Util.DX.Direct2D.Factory.html">Factory</a></td>
      <td><span class="parametername">factory</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.Factory.html">Factory</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.DrawingStateDescription.html">DrawingStateDescription</a>?</td>
      <td><span class="parametername">drawingStateDescription</span></td>
      <td><p>A structure that contains antialiasing, transform, and tags  information.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.RenderingParams.html">RenderingParams</a></td>
      <td><span class="parametername">textRenderingParams</span></td>
      <td><p>Optional text parameters that indicate how text should be rendered.</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.Util.DX.Direct2D.DrawingStateBlock.html">DrawingStateBlock</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
