This documentation is for the old version. Go to the latest Graphics Mill docs

VirtualListView.HitTest Method (Int32, Int32)

Determines which list-view item, if any, is at a specified position.

Namespace: Aurigma.GraphicsMill.WinControls
Assembly: Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)

Syntax

Visual Basic
Public Function HitTest ( _
	x As Integer, _
	y As Integer _
) As Integer
C#
public int HitTest(
	int x,
	int y
)

Parameters

x

Type: System.Int32

X-coordinate of the position to test.
y

Type: System.Int32

Y-coordinate of the position to test.

Return Value

An index of the item at specified position, if any, or -1 otherwise.

Remarks

Coordinates are interpreted relatively the control client area. It does not depend on the scrolling position, etc.

See Also

Reference