# C1.Util.DX.Direct2D.StrokeStyle.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_StrokeStyle_Create_" data-uid="C1.Util.DX.Direct2D.StrokeStyle.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_StrokeStyle_Create_" data-uid="C1.Util.DX.Direct2D.StrokeStyle.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_StrokeStyle_Create_C1_Util_DX_Direct2D_Factory_C1_Util_DX_Direct2D_StrokeStyleProperties__" data-uid="C1.Util.DX.Direct2D.StrokeStyle.Create(C1.Util.DX.Direct2D.Factory,C1.Util.DX.Direct2D.StrokeStyleProperties@)">Create(Factory, ref StrokeStyleProperties)</h4>
<div class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.StrokeStyle.html">StrokeStyle</a> that describes start cap, dash pattern, and other features of a stroke.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static StrokeStyle Create(Factory factory, ref StrokeStyleProperties properties)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(factory As Factory, ByRef properties 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.Factory.html">Factory</a></td>
      <td><span class="parametername">factory</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.Factory.html">Factory</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.StrokeStyleProperties.html">StrokeStyleProperties</a></td>
      <td><span class="parametername">properties</span></td>
      <td><p>a definition for this render target</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.StrokeStyle.html">StrokeStyle</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_StrokeStyle_Create_" data-uid="C1.Util.DX.Direct2D.StrokeStyle.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_StrokeStyle_Create_C1_Util_DX_Direct2D_Factory_C1_Util_DX_Direct2D_StrokeStyleProperties__System_Single___" data-uid="C1.Util.DX.Direct2D.StrokeStyle.Create(C1.Util.DX.Direct2D.Factory,C1.Util.DX.Direct2D.StrokeStyleProperties@,System.Single[])">Create(Factory, ref StrokeStyleProperties, float[])</h4>
<div class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.StrokeStyle.html">StrokeStyle</a> that describes start cap, dash pattern, and other features of a stroke.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static StrokeStyle Create(Factory factory, ref StrokeStyleProperties properties, float[] dashes)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(factory As Factory, ByRef properties 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.Factory.html">Factory</a></td>
      <td><span class="parametername">factory</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.Factory.html">Factory</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.StrokeStyleProperties.html">StrokeStyleProperties</a></td>
      <td><span class="parametername">properties</span></td>
      <td><p>A structure that describes the stroke's line cap, dash offset, and other details of a stroke.</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>An array whose elements are set to the length of each dash and space in the dash pattern. The first element sets the length of a dash, the second element sets the length of a space, the third element sets the length of a dash, and so on. The length of each dash and space in the dash pattern is the product of the element value in the array and the stroke width.</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.StrokeStyle.html">StrokeStyle</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
