# C1.Util.DX.Direct2D.Factory1.CreateStrokeStyle1

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_Factory1_CreateStrokeStyle1_" data-uid="C1.Util.DX.Direct2D.Factory1.CreateStrokeStyle1*">CreateStrokeStyle1 Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_Factory1_CreateStrokeStyle1_" data-uid="C1.Util.DX.Direct2D.Factory1.CreateStrokeStyle1*"></a>
<h4 id="C1_Util_DX_Direct2D_Factory1_CreateStrokeStyle1_C1_Util_DX_Direct2D_StrokeStyleProperties1__System_Single___" data-uid="C1.Util.DX.Direct2D.Factory1.CreateStrokeStyle1(C1.Util.DX.Direct2D.StrokeStyleProperties1@,System.Single[])">CreateStrokeStyle1(ref StrokeStyleProperties1, float[])</h4>
<div class="markdown level1 summary"><p>HRESULT ID2D1Factory1::CreateStrokeStyle([In] const D2D1_STROKE_STYLE_PROPERTIES1* strokeStyleProperties,[In, Buffer, Optional] const float* dashes,[In] unsigned int dashesCount,[Out, Fast] ID2D1StrokeStyle1** strokeStyle)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public StrokeStyle1 CreateStrokeStyle1(ref StrokeStyleProperties1 strokeStyleProperties, float[] dashes)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CreateStrokeStyle1(ByRef strokeStyleProperties As StrokeStyleProperties1, dashes As Single()) As StrokeStyle1</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.StrokeStyleProperties1.html">StrokeStyleProperties1</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.StrokeStyle1.html">StrokeStyle1</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_Factory1_CreateStrokeStyle1_" data-uid="C1.Util.DX.Direct2D.Factory1.CreateStrokeStyle1*"></a>
<h4 id="C1_Util_DX_Direct2D_Factory1_CreateStrokeStyle1_C1_Util_DX_Direct2D_StrokeStyleProperties1__" data-uid="C1.Util.DX.Direct2D.Factory1.CreateStrokeStyle1(C1.Util.DX.Direct2D.StrokeStyleProperties1@)">CreateStrokeStyle1(ref StrokeStyleProperties1)</h4>
<div class="markdown level1 summary"><p>HRESULT ID2D1Factory1::CreateStrokeStyle([In] const D2D1_STROKE_STYLE_PROPERTIES1* strokeStyleProperties,[In, Buffer, Optional] const float* dashes,[In] unsigned int dashesCount,[Out, Fast] ID2D1StrokeStyle1** strokeStyle)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public StrokeStyle1 CreateStrokeStyle1(ref StrokeStyleProperties1 strokeStyleProperties)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CreateStrokeStyle1(ByRef strokeStyleProperties As StrokeStyleProperties1) As StrokeStyle1</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.StrokeStyleProperties1.html">StrokeStyleProperties1</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.StrokeStyle1.html">StrokeStyle1</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
