# C1.Util.DX.DirectWrite.TextLayout.HitTestPoint

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_TextLayout_HitTestPoint_" data-uid="C1.Util.DX.DirectWrite.TextLayout.HitTestPoint*">HitTestPoint Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_TextLayout_HitTestPoint_" data-uid="C1.Util.DX.DirectWrite.TextLayout.HitTestPoint*"></a>
<h4 id="C1_Util_DX_DirectWrite_TextLayout_HitTestPoint_System_Single_System_Single_C1_Util_DX_Bool__C1_Util_DX_Bool__" data-uid="C1.Util.DX.DirectWrite.TextLayout.HitTestPoint(System.Single,System.Single,C1.Util.DX.Bool@,C1.Util.DX.Bool@)">HitTestPoint(float, float, out Bool, out Bool)</h4>
<div class="markdown level1 summary"><p>HRESULT IDWriteTextLayout::HitTestPoint([In] float pointX,[In] float pointY,[Out] BOOL* isTrailingHit,[Out] BOOL* isInside,[Out] DWRITE_HIT_TEST_METRICS* hitTestMetrics)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public HitTestMetrics HitTestPoint(float pointX, float pointY, out Bool isTrailingHit, out Bool isInside)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function HitTestPoint(pointX As Single, pointY As Single, ByRef isTrailingHit As Bool, ByRef isInside As Bool) As HitTestMetrics</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="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">pointX</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">pointY</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Bool.html">Bool</a></td>
      <td><span class="parametername">isTrailingHit</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Bool.html">Bool</a></td>
      <td><span class="parametername">isInside</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.DirectWrite.HitTestMetrics.html">HitTestMetrics</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
