# FarPoint.Web.Chart.Chart2DRenderer.HitTest

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Chart_Chart2DRenderer_HitTest_" data-uid="FarPoint.Web.Chart.Chart2DRenderer.HitTest*">HitTest Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Chart_Chart2DRenderer_HitTest_" data-uid="FarPoint.Web.Chart.Chart2DRenderer.HitTest*"></a>
<h4 id="FarPoint_Web_Chart_Chart2DRenderer_HitTest_System_Drawing_Graphics_System_Drawing_RectangleF_FarPoint_Web_Chart_ChartModel_System_Single_System_Single_" data-uid="FarPoint.Web.Chart.Chart2DRenderer.HitTest(System.Drawing.Graphics,System.Drawing.RectangleF,FarPoint.Web.Chart.ChartModel,System.Single,System.Single)">HitTest(Graphics, RectangleF, ChartModel, float, float)</h4>
<div class="markdown level1 summary"><p>Gets hit test information.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public HitTest HitTest(Graphics g, RectangleF rectangle, ChartModel model, float x, float y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function HitTest(g As Graphics, rectangle As RectangleF, model As ChartModel, x As Single, y As Single) As HitTest</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><span class="xref">Graphics</span></td>
      <td><span class="parametername">g</span></td>
      <td><p>Graphics context</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">RectangleF</span></td>
      <td><span class="parametername">rectangle</span></td>
      <td><p>Area where to get the hit test information</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Chart.ChartModel.html">ChartModel</a></td>
      <td><span class="parametername">model</span></td>
      <td><p>Chart model</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>X-coordinate</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>Y-coordinate</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="FarPoint.Web.Chart.HitTest.html">HitTest</a></td>
      <td><p>A <a class="xref" href="FarPoint.Web.Chart.Chart2DRenderer.HitTest.html#FarPoint_Web_Chart_Chart2DRenderer_HitTest_System_Drawing_Graphics_System_Drawing_RectangleF_FarPoint_Web_Chart_ChartModel_System_Single_System_Single_">HitTest(Graphics, RectangleF, ChartModel, float, float)</a> object that contains hit test information</p>
</td>
    </tr>
  </tbody>
</table>
</div>
