# GrapeCity.Spreadsheet.Drawing.HitTestInfo.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Drawing_HitTestInfo__ctor_" data-uid="GrapeCity.Spreadsheet.Drawing.HitTestInfo.#ctor*">HitTestInfo Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Drawing_HitTestInfo__ctor_" data-uid="GrapeCity.Spreadsheet.Drawing.HitTestInfo.#ctor*"></a>
<h4 id="GrapeCity_Spreadsheet_Drawing_HitTestInfo__ctor_System_Int32_" data-uid="GrapeCity.Spreadsheet.Drawing.HitTestInfo.#ctor(System.Int32)">HitTestInfo(int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Spreadsheet.Drawing.HitTestInfo.html">HitTestInfo</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public HitTestInfo(int hitTest)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(hitTest As Integer)</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.int32">int</a></td>
      <td><span class="parametername">hitTest</span></td>
      <td><p>The hit test code at the position indicated by a hit test.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_Drawing_HitTestInfo__ctor_" data-uid="GrapeCity.Spreadsheet.Drawing.HitTestInfo.#ctor*"></a>
<h4 id="GrapeCity_Spreadsheet_Drawing_HitTestInfo__ctor_System_Int32_GrapeCity_Spreadsheet_Drawing_DrawingObject_" data-uid="GrapeCity.Spreadsheet.Drawing.HitTestInfo.#ctor(System.Int32,GrapeCity.Spreadsheet.Drawing.DrawingObject)">HitTestInfo(int, DrawingObject)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Spreadsheet.Drawing.HitTestInfo.html">HitTestInfo</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public HitTestInfo(int hitTest, DrawingObject target)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(hitTest As Integer, target As DrawingObject)</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.int32">int</a></td>
      <td><span class="parametername">hitTest</span></td>
      <td><p>The hit test code at the position indicated by a hit test.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">DrawingObject</span></td>
      <td><span class="parametername">target</span></td>
      <td><p>The object at the position indicated by a hit test.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_Drawing_HitTestInfo__ctor_" data-uid="GrapeCity.Spreadsheet.Drawing.HitTestInfo.#ctor*"></a>
<h4 id="GrapeCity_Spreadsheet_Drawing_HitTestInfo__ctor_System_Int32_GrapeCity_Spreadsheet_Drawing_DrawingObject_System_Int32_System_Nullable_GrapeCity_Spreadsheet_API_Drawing_FreeFormNode__" data-uid="GrapeCity.Spreadsheet.Drawing.HitTestInfo.#ctor(System.Int32,GrapeCity.Spreadsheet.Drawing.DrawingObject,System.Int32,System.Nullable{GrapeCity.Spreadsheet.API.Drawing.FreeFormNode})">HitTestInfo(int, DrawingObject, int, FreeFormNode?)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Spreadsheet.Drawing.HitTestInfo.html">HitTestInfo</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public HitTestInfo(int hitTest, DrawingObject target, int value, FreeFormNode? node = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(hitTest As Integer, target As DrawingObject, value As Integer, Optional node As FreeFormNode? = Nothing)</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.int32">int</a></td>
      <td><span class="parametername">hitTest</span></td>
      <td><p>The hit test code at the position indicated by a hit test.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">DrawingObject</span></td>
      <td><span class="parametername">target</span></td>
      <td><p>The object at the position indicated by a hit test.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">value</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">FreeFormNode</span>?</td>
      <td><span class="parametername">node</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
