# C1.Util.DX.Direct2D.CommandSink.DrawLine

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_CommandSink_DrawLine_" data-uid="C1.Util.DX.Direct2D.CommandSink.DrawLine*">DrawLine Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_CommandSink_DrawLine_" data-uid="C1.Util.DX.Direct2D.CommandSink.DrawLine*"></a>
<h4 id="C1_Util_DX_Direct2D_CommandSink_DrawLine_C1_Util_DX_Point2F_C1_Util_DX_Point2F_C1_Util_DX_Direct2D_Brush_System_Single_C1_Util_DX_Direct2D_StrokeStyle_" data-uid="C1.Util.DX.Direct2D.CommandSink.DrawLine(C1.Util.DX.Point2F,C1.Util.DX.Point2F,C1.Util.DX.Direct2D.Brush,System.Single,C1.Util.DX.Direct2D.StrokeStyle)">DrawLine(Point2F, Point2F, Brush, float, StrokeStyle)</h4>
<div class="markdown level1 summary"><p>HRESULT ID2D1CommandSink::DrawLine([In] D2D_POINT_2F point0,[In] D2D_POINT_2F point1,[In] ID2D1Brush* brush,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void DrawLine(Point2F point0, Point2F point1, Brush brush, float strokeWidth, StrokeStyle strokeStyle)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub DrawLine(point0 As Point2F, point1 As Point2F, brush As Brush, strokeWidth As Single, strokeStyle 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.Point2F.html">Point2F</a></td>
      <td><span class="parametername">point0</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Point2F.html">Point2F</a></td>
      <td><span class="parametername">point1</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.Brush.html">Brush</a></td>
      <td><span class="parametername">brush</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">strokeWidth</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.StrokeStyle.html">StrokeStyle</a></td>
      <td><span class="parametername">strokeStyle</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
