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

VirtualListView.InsertMarkHitTest Method (Int32, Int32, Int32 %, Boolean %)

Tests what item insertion mark is closest to a specified point.

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

Syntax

Visual Basic
Public Function InsertMarkHitTest ( _
	x As Integer, _
	y As Integer, _
	<OutAttribute> ByRef index As Integer, _
	<OutAttribute> ByRef afterItem As Boolean _
) As Boolean
C#
public bool InsertMarkHitTest(
	int x,
	int y,
	out int index,
	out bool afterItem
)

Parameters

x

Type: System.Int32

X-coordinate of the position to test.
y

Type: System.Int32

Y-coordinate of the position to test.
index

Type: System.Int32 %

An integer value that receives an index of the item next to the insertion mark.
afterItem

Type: System.Boolean %

A Boolean 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 view.

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

See Also

Reference