
# ISch_HitTest interface

This `ISch_HitTest` interface returns you the number of objects and object type at a particular point on the schematic document.

```csharp
public interface ISch_HitTest
```

**Namespace:** SCH · **Assembly:** Altium.SDK.Interfaces

## Remarks

To specify the location where the objects can be checked on the schematic document, pass in the location (of TLocation type) and invoke the [`ISch_Document.CreateHitTest`](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_Document.md#createhittest) method. This location parameter can be set either programmatically or by the [`ISch_Document.ChooseLocationInteractively`](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_Document.md#chooselocationinteractively) method.

## Properties

| Property | Type | Access | Description |
| --- | --- | --- | --- |
| [HitObject](#hitobject) | [ISch_GraphicalObject](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md) | get | This property returns you the indexed object at the particular point on the schematic document. |
| [HitTestCount](#hittestcount) | `int` | get | This property returns you the number of objects at the particular point on the schematic document. |

### HitObject

This property returns you the indexed object at the particular point on the schematic document.

```csharp
ISch_GraphicalObject GetState_HitObject(int argI);
```

**Type:** [ISch_GraphicalObject](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md) · **Access:** read-only · **Index:** `argI` (`int`)

The accessors are extension methods of `ISch_HitTestHelper` (`using SCH;`).

**See also:** [ISch_HitTest.HitTestCount](#hittestcount)

### HitTestCount

This property returns you the number of objects at the particular point on the schematic document.

```csharp
int GetState_HitTestCount();
```

**Type:** `int` · **Access:** read-only

## Returned by

[ISch_Document.CreateHitTest](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_Document.md#createhittest), [ISch_Document.PopupMenuHitTest](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_Document.md#popupmenuhittest)
