# C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_Geometry_StrokeContainsPoint_" data-uid="C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint*">StrokeContainsPoint Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_Geometry_StrokeContainsPoint_" data-uid="C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint*"></a>
<h4 id="C1_Util_DX_Direct2D_Geometry_StrokeContainsPoint_C1_Util_DX_Point2L_System_Single_" data-uid="C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint(C1.Util.DX.Point2L,System.Single)">StrokeContainsPoint(Point2L, float)</h4>
<div class="markdown level1 summary"><p>Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool StrokeContainsPoint(Point2L point, float strokeWidth)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function StrokeContainsPoint(point As Point2L, strokeWidth As Single) As Boolean</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.Point2L.html">Point2L</a></td>
      <td><span class="parametername">point</span></td>
      <td><p>The point to test for containment.</p>
</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><p>The thickness of the stroke to apply.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>When this method returns, contains a boolean value set to true if the geometry's stroke contains the specified point; otherwise, false. You must allocate storage for this parameter.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_Geometry_StrokeContainsPoint_" data-uid="C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint*"></a>
<h4 id="C1_Util_DX_Direct2D_Geometry_StrokeContainsPoint_C1_Util_DX_Point2F_System_Single_" data-uid="C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint(C1.Util.DX.Point2F,System.Single)">StrokeContainsPoint(Point2F, float)</h4>
<div class="markdown level1 summary"><p>Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool StrokeContainsPoint(Point2F point, float strokeWidth)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function StrokeContainsPoint(point As Point2F, strokeWidth As Single) As Boolean</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">point</span></td>
      <td><p>The point to test for containment.</p>
</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><p>The thickness of the stroke to apply.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>When this method returns, contains a boolean value set to true if the geometry's stroke contains the specified point; otherwise, false. You must allocate storage for this parameter.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_Geometry_StrokeContainsPoint_" data-uid="C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint*"></a>
<h4 id="C1_Util_DX_Direct2D_Geometry_StrokeContainsPoint_C1_Util_DX_Point2L_System_Single_C1_Util_DX_Direct2D_StrokeStyle_" data-uid="C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint(C1.Util.DX.Point2L,System.Single,C1.Util.DX.Direct2D.StrokeStyle)">StrokeContainsPoint(Point2L, float, StrokeStyle)</h4>
<div class="markdown level1 summary"><p>Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool StrokeContainsPoint(Point2L point, float strokeWidth, StrokeStyle strokeStyle)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function StrokeContainsPoint(point As Point2L, strokeWidth As Single, strokeStyle As StrokeStyle) As Boolean</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.Point2L.html">Point2L</a></td>
      <td><span class="parametername">point</span></td>
      <td><p>The point to test for containment.</p>
</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><p>The thickness of the stroke to apply.</p>
</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><p>The style of stroke to apply.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>When this method returns, contains a boolean value set to true if the geometry's stroke contains the specified point; otherwise, false. You must allocate storage for this parameter.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_Geometry_StrokeContainsPoint_" data-uid="C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint*"></a>
<h4 id="C1_Util_DX_Direct2D_Geometry_StrokeContainsPoint_C1_Util_DX_Point2F_System_Single_C1_Util_DX_Direct2D_StrokeStyle_" data-uid="C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint(C1.Util.DX.Point2F,System.Single,C1.Util.DX.Direct2D.StrokeStyle)">StrokeContainsPoint(Point2F, float, StrokeStyle)</h4>
<div class="markdown level1 summary"><p>Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool StrokeContainsPoint(Point2F point, float strokeWidth, StrokeStyle strokeStyle)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function StrokeContainsPoint(point As Point2F, strokeWidth As Single, strokeStyle As StrokeStyle) As Boolean</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">point</span></td>
      <td><p>The point to test for containment.</p>
</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><p>The thickness of the stroke to apply.</p>
</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><p>The style of stroke to apply.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>When this method returns, contains a boolean value set to true if the geometry's stroke contains the specified point; otherwise, false. You must allocate storage for this parameter.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_Geometry_StrokeContainsPoint_" data-uid="C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint*"></a>
<h4 id="C1_Util_DX_Direct2D_Geometry_StrokeContainsPoint_C1_Util_DX_Point2L_System_Single_C1_Util_DX_Direct2D_StrokeStyle_C1_Util_DX_Matrix3x2_" data-uid="C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint(C1.Util.DX.Point2L,System.Single,C1.Util.DX.Direct2D.StrokeStyle,C1.Util.DX.Matrix3x2)">StrokeContainsPoint(Point2L, float, StrokeStyle, Matrix3x2)</h4>
<div class="markdown level1 summary"><p>Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool StrokeContainsPoint(Point2L point, float strokeWidth, StrokeStyle strokeStyle, Matrix3x2 transform)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function StrokeContainsPoint(point As Point2L, strokeWidth As Single, strokeStyle As StrokeStyle, transform As Matrix3x2) As Boolean</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.Point2L.html">Point2L</a></td>
      <td><span class="parametername">point</span></td>
      <td><p>The point to test for containment.</p>
</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><p>The thickness of the stroke to apply.</p>
</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><p>The style of stroke to apply.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Matrix3x2.html">Matrix3x2</a></td>
      <td><span class="parametername">transform</span></td>
      <td><p>The transform to apply to the stroked geometry.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>When this method returns, contains a boolean value set to true if the geometry's stroke contains the specified point; otherwise, false. You must allocate storage for this parameter.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_Geometry_StrokeContainsPoint_" data-uid="C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint*"></a>
<h4 id="C1_Util_DX_Direct2D_Geometry_StrokeContainsPoint_C1_Util_DX_Point2F_System_Single_C1_Util_DX_Direct2D_StrokeStyle_C1_Util_DX_Matrix3x2_" data-uid="C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint(C1.Util.DX.Point2F,System.Single,C1.Util.DX.Direct2D.StrokeStyle,C1.Util.DX.Matrix3x2)">StrokeContainsPoint(Point2F, float, StrokeStyle, Matrix3x2)</h4>
<div class="markdown level1 summary"><p>Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool StrokeContainsPoint(Point2F point, float strokeWidth, StrokeStyle strokeStyle, Matrix3x2 transform)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function StrokeContainsPoint(point As Point2F, strokeWidth As Single, strokeStyle As StrokeStyle, transform As Matrix3x2) As Boolean</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">point</span></td>
      <td><p>The point to test for containment.</p>
</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><p>The thickness of the stroke to apply.</p>
</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><p>The style of stroke to apply.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Matrix3x2.html">Matrix3x2</a></td>
      <td><span class="parametername">transform</span></td>
      <td><p>The transform to apply to the stroked geometry.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>When this method returns, contains a boolean value set to true if the geometry's stroke contains the specified point; otherwise, false. You must allocate storage for this parameter.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_Geometry_StrokeContainsPoint_" data-uid="C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint*"></a>
<h4 id="C1_Util_DX_Direct2D_Geometry_StrokeContainsPoint_C1_Util_DX_Point2L_System_Single_C1_Util_DX_Direct2D_StrokeStyle_C1_Util_DX_Matrix3x2_System_Single_" data-uid="C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint(C1.Util.DX.Point2L,System.Single,C1.Util.DX.Direct2D.StrokeStyle,C1.Util.DX.Matrix3x2,System.Single)">StrokeContainsPoint(Point2L, float, StrokeStyle, Matrix3x2, float)</h4>
<div class="markdown level1 summary"><p>Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool StrokeContainsPoint(Point2L point, float strokeWidth, StrokeStyle strokeStyle, Matrix3x2 transform, float flatteningTolerance)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function StrokeContainsPoint(point As Point2L, strokeWidth As Single, strokeStyle As StrokeStyle, transform As Matrix3x2, flatteningTolerance As Single) As Boolean</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.Point2L.html">Point2L</a></td>
      <td><span class="parametername">point</span></td>
      <td><p>The point to test for containment.</p>
</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><p>The thickness of the stroke to apply.</p>
</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><p>The style of stroke to apply.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Matrix3x2.html">Matrix3x2</a></td>
      <td><span class="parametername">transform</span></td>
      <td><p>The transform to apply to the stroked geometry.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">flatteningTolerance</span></td>
      <td><p>The numeric accuracy with which the precise geometric path and path intersection is calculated. Points missing the stroke by less than the tolerance are still considered inside.  Smaller values produce more accurate results but cause slower execution.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>When this method returns, contains a boolean value set to true if the geometry's stroke contains the specified point; otherwise, false. You must allocate storage for this parameter.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_Geometry_StrokeContainsPoint_" data-uid="C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint*"></a>
<h4 id="C1_Util_DX_Direct2D_Geometry_StrokeContainsPoint_C1_Util_DX_Point2F_System_Single_C1_Util_DX_Direct2D_StrokeStyle_System_Nullable_C1_Util_DX_Matrix3x2__System_Single_" data-uid="C1.Util.DX.Direct2D.Geometry.StrokeContainsPoint(C1.Util.DX.Point2F,System.Single,C1.Util.DX.Direct2D.StrokeStyle,System.Nullable{C1.Util.DX.Matrix3x2},System.Single)">StrokeContainsPoint(Point2F, float, StrokeStyle, Matrix3x2?, float)</h4>
<div class="markdown level1 summary"><p>HRESULT ID2D1Geometry::StrokeContainsPoint([In] D2D_POINT_2F point,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[Out] BOOL* contains)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool StrokeContainsPoint(Point2F point, float strokeWidth, StrokeStyle strokeStyle, Matrix3x2? worldTransform, float flatteningTolerance)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function StrokeContainsPoint(point As Point2F, strokeWidth As Single, strokeStyle As StrokeStyle, worldTransform As Matrix3x2?, flatteningTolerance As Single) As Boolean</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">point</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>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Matrix3x2.html">Matrix3x2</a>?</td>
      <td><span class="parametername">worldTransform</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">flatteningTolerance</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
