# C1.Util.DX.Direct2D.Factory1.CreateDrawingStateBlock1

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_Factory1_CreateDrawingStateBlock1_" data-uid="C1.Util.DX.Direct2D.Factory1.CreateDrawingStateBlock1*">CreateDrawingStateBlock1 Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_Factory1_CreateDrawingStateBlock1_" data-uid="C1.Util.DX.Direct2D.Factory1.CreateDrawingStateBlock1*"></a>
<h4 id="C1_Util_DX_Direct2D_Factory1_CreateDrawingStateBlock1_System_Nullable_C1_Util_DX_Direct2D_DrawingStateDescription1__C1_Util_DX_DirectWrite_RenderingParams_" data-uid="C1.Util.DX.Direct2D.Factory1.CreateDrawingStateBlock1(System.Nullable{C1.Util.DX.Direct2D.DrawingStateDescription1},C1.Util.DX.DirectWrite.RenderingParams)">CreateDrawingStateBlock1(DrawingStateDescription1?, RenderingParams)</h4>
<div class="markdown level1 summary"><p>HRESULT ID2D1Factory1::CreateDrawingStateBlock([In, Optional] const D2D1_DRAWING_STATE_DESCRIPTION1* drawingStateDescription,[In, Optional] IDWriteRenderingParams* textRenderingParams,[Out, Fast] ID2D1DrawingStateBlock1** drawingStateBlock)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DrawingStateBlock1 CreateDrawingStateBlock1(DrawingStateDescription1? drawingStateDescription, RenderingParams textRenderingParams)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CreateDrawingStateBlock1(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.DrawingStateDescription1.html">DrawingStateDescription1</a>?</td>
      <td><span class="parametername">drawingStateDescription</span></td>
      <td></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></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>
