# C1.Util.DX.Direct2D.DrawingStateBlock1.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_DrawingStateBlock1_Create_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock1.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_DrawingStateBlock1_Create_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock1.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_DrawingStateBlock1_Create_C1_Util_DX_Direct2D_Factory1_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock1.Create(C1.Util.DX.Direct2D.Factory1)">Create(Factory1)</h4>
<div class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock1.html">DrawingStateBlock1</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 DrawingStateBlock1 Create(Factory1 factory)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(factory As Factory1) As DrawingStateBlock1</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.Factory1.html">Factory1</a></td>
      <td><span class="parametername">factory</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.Factory1.html">Factory1</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.DrawingStateBlock1.html">DrawingStateBlock1</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_DrawingStateBlock1_Create_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock1.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_DrawingStateBlock1_Create_C1_Util_DX_Direct2D_Factory1_C1_Util_DX_Direct2D_DrawingStateDescription1_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock1.Create(C1.Util.DX.Direct2D.Factory1,C1.Util.DX.Direct2D.DrawingStateDescription1)">Create(Factory1, DrawingStateDescription1)</h4>
<div class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock1.html">DrawingStateBlock1</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 DrawingStateBlock1 Create(Factory1 factory, DrawingStateDescription1 drawingStateDescription)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(factory As Factory1, drawingStateDescription As DrawingStateDescription1) As DrawingStateBlock1</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.Factory1.html">Factory1</a></td>
      <td><span class="parametername">factory</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.Factory1.html">Factory1</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.DrawingStateDescription1.html">DrawingStateDescription1</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.DrawingStateBlock1.html">DrawingStateBlock1</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_DrawingStateBlock1_Create_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock1.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_DrawingStateBlock1_Create_C1_Util_DX_Direct2D_Factory1_C1_Util_DX_DirectWrite_RenderingParams_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock1.Create(C1.Util.DX.Direct2D.Factory1,C1.Util.DX.DirectWrite.RenderingParams)">Create(Factory1, RenderingParams)</h4>
<div class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock1.html">DrawingStateBlock1</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 DrawingStateBlock1 Create(Factory1 factory, RenderingParams textRenderingParams)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(factory As Factory1, textRenderingParams As RenderingParams) As DrawingStateBlock1</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.Factory1.html">Factory1</a></td>
      <td><span class="parametername">factory</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.Factory1.html">Factory1</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.DrawingStateBlock1.html">DrawingStateBlock1</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_DrawingStateBlock1_Create_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock1.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_DrawingStateBlock1_Create_C1_Util_DX_Direct2D_Factory1_C1_Util_DX_Direct2D_DrawingStateDescription1_C1_Util_DX_DirectWrite_RenderingParams_" data-uid="C1.Util.DX.Direct2D.DrawingStateBlock1.Create(C1.Util.DX.Direct2D.Factory1,C1.Util.DX.Direct2D.DrawingStateDescription1,C1.Util.DX.DirectWrite.RenderingParams)">Create(Factory1, DrawingStateDescription1, RenderingParams)</h4>
<div class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.DrawingStateBlock1.html">DrawingStateBlock1</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 DrawingStateBlock1 Create(Factory1 factory, DrawingStateDescription1 drawingStateDescription, RenderingParams textRenderingParams)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(factory As Factory1, drawingStateDescription As DrawingStateDescription1, textRenderingParams As RenderingParams) As DrawingStateBlock1</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.Factory1.html">Factory1</a></td>
      <td><span class="parametername">factory</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.Factory1.html">Factory1</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.DrawingStateDescription1.html">DrawingStateDescription1</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.DrawingStateBlock1.html">DrawingStateBlock1</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
