---
title: "VirtualListView..::.InsertMarkHitTest Method (Point, 
            Int32
          %, 
            Boolean
          %)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_VirtualListView_InsertMarkHitTest_3_7fa55fa6.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# VirtualListView.InsertMarkHitTest Method (Point, Int32 %, Boolean %)
 
Tests what item insertion mark is closest to a specified point.
 
**Namespace:** [Aurigma.GraphicsMill.WinControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)
 
## Syntax
  
```
Public Function InsertMarkHitTest ( _point As Point, _<OutAttribute> ByRef index As Integer, _<OutAttribute> ByRef afterItem As Boolean _
) As Boolean
```
 
```csharp
public bool InsertMarkHitTest(Point point,out int index,out bool afterItem
)
```
 
### Parameters
 
 - point
     - Type: [System.Drawing.Point](http://msdn2.microsoft.com/en-us/bk9hwzbw)
The coordinates of point to test.

 - index
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d) %
An integer value that receives an index of the item next to the insertion mark.

 - afterItem
     - Type: [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50) %
A [Boolean](http://msdn2.microsoft.com/en-us/a28wyd50) value which specifies whether the insertion point should appear after the item (when the value is **true**) or before it (when the value is **false**).
 
### Return Value
 **true** if successful, **false** otherwise.
 
## Remarks
  
An insertion mark does not make sense for [Details](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_View.htm.md) view.
 
Coordinates are interpreted relatively the control client area. It does not depend on the scrolling position, etc.
   
## See Also

### Reference

- [VirtualListView Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_VirtualListView.htm.md)
- [InsertMarkHitTest Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_WinControls_VirtualListView_InsertMarkHitTest.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
