# C1.Util.DX.Direct2D.StrokeStyle1.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_StrokeStyle1_Create_" data-uid="C1.Util.DX.Direct2D.StrokeStyle1.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_StrokeStyle1_Create_" data-uid="C1.Util.DX.Direct2D.StrokeStyle1.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_StrokeStyle1_Create_C1_Util_DX_Direct2D_Factory1_C1_Util_DX_Direct2D_StrokeStyleProperties1__" data-uid="C1.Util.DX.Direct2D.StrokeStyle1.Create(C1.Util.DX.Direct2D.Factory1,C1.Util.DX.Direct2D.StrokeStyleProperties1@)">Create(Factory1, ref StrokeStyleProperties1)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.StrokeStyle1.html">StrokeStyle1</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static StrokeStyle1 Create(Factory1 factory, ref StrokeStyleProperties1 strokeStyleProperties)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(factory As Factory1, 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.Factory1.html">Factory1</a></td>
      <td><span class="parametername">factory</span></td>
      <td><p>The factory.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.StrokeStyleProperties1.html">StrokeStyleProperties1</a></td>
      <td><span class="parametername">strokeStyleProperties</span></td>
      <td><p>No documentation.</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.StrokeStyle1.html">StrokeStyle1</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_StrokeStyle1_Create_" data-uid="C1.Util.DX.Direct2D.StrokeStyle1.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_StrokeStyle1_Create_C1_Util_DX_Direct2D_Factory1_C1_Util_DX_Direct2D_StrokeStyleProperties1__System_Single___" data-uid="C1.Util.DX.Direct2D.StrokeStyle1.Create(C1.Util.DX.Direct2D.Factory1,C1.Util.DX.Direct2D.StrokeStyleProperties1@,System.Single[])">Create(Factory1, ref StrokeStyleProperties1, float[])</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.StrokeStyle1.html">StrokeStyle1</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static StrokeStyle1 Create(Factory1 factory, ref StrokeStyleProperties1 strokeStyleProperties, float[] dashes)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(factory As Factory1, 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.Factory1.html">Factory1</a></td>
      <td><span class="parametername">factory</span></td>
      <td><p>The factory.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.StrokeStyleProperties1.html">StrokeStyleProperties1</a></td>
      <td><span class="parametername">strokeStyleProperties</span></td>
      <td><p>No documentation.</p>
</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><p>No documentation.</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.StrokeStyle1.html">StrokeStyle1</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Util_DX_Direct2D_StrokeStyle1_Create_C1_Util_DX_Direct2D_Factory1_C1_Util_DX_Direct2D_StrokeStyleProperties1__System_Single____remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>It is valid to specify a dash array only if <a class="xref" href="C1.Util.DX.Direct2D.DashStyle.html#C1_Util_DX_Direct2D_DashStyle_Custom">Custom</a> is also specified.</p>
</div>
</div>
