# C1.Util.DX.Direct2D.Factory.CreateStrokeStyle

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_Factory_CreateStrokeStyle_" data-uid="C1.Util.DX.Direct2D.Factory.CreateStrokeStyle*">CreateStrokeStyle Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_Factory_CreateStrokeStyle_" data-uid="C1.Util.DX.Direct2D.Factory.CreateStrokeStyle*"></a>
<h4 id="C1_Util_DX_Direct2D_Factory_CreateStrokeStyle_C1_Util_DX_Direct2D_StrokeStyleProperties__System_Single___" data-uid="C1.Util.DX.Direct2D.Factory.CreateStrokeStyle(C1.Util.DX.Direct2D.StrokeStyleProperties@,System.Single[])">CreateStrokeStyle(ref StrokeStyleProperties, float[])</h4>
<div class="markdown level1 summary"><p>HRESULT ID2D1Factory::CreateStrokeStyle([In] const D2D1_STROKE_STYLE_PROPERTIES* strokeStyleProperties,[In, Buffer, Optional] const float* dashes,[In] unsigned int dashesCount,[Out, Fast] ID2D1StrokeStyle** strokeStyle)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public StrokeStyle CreateStrokeStyle(ref StrokeStyleProperties strokeStyleProperties, float[] dashes)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CreateStrokeStyle(ByRef strokeStyleProperties As StrokeStyleProperties, dashes As Single()) As StrokeStyle</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.StrokeStyleProperties.html">StrokeStyleProperties</a></td>
      <td><span class="parametername">strokeStyleProperties</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a>[]</td>
      <td><span class="parametername">dashes</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.StrokeStyle.html">StrokeStyle</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_Factory_CreateStrokeStyle_" data-uid="C1.Util.DX.Direct2D.Factory.CreateStrokeStyle*"></a>
<h4 id="C1_Util_DX_Direct2D_Factory_CreateStrokeStyle_C1_Util_DX_Direct2D_StrokeStyleProperties__" data-uid="C1.Util.DX.Direct2D.Factory.CreateStrokeStyle(C1.Util.DX.Direct2D.StrokeStyleProperties@)">CreateStrokeStyle(ref StrokeStyleProperties)</h4>
<div class="markdown level1 summary"><p>HRESULT ID2D1Factory::CreateStrokeStyle([In] const D2D1_STROKE_STYLE_PROPERTIES* strokeStyleProperties,[In, Buffer, Optional] const float* dashes,[In] unsigned int dashesCount,[Out, Fast] ID2D1StrokeStyle** strokeStyle)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public StrokeStyle CreateStrokeStyle(ref StrokeStyleProperties strokeStyleProperties)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CreateStrokeStyle(ByRef strokeStyleProperties As StrokeStyleProperties) As StrokeStyle</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.StrokeStyleProperties.html">StrokeStyleProperties</a></td>
      <td><span class="parametername">strokeStyleProperties</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.StrokeStyle.html">StrokeStyle</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
