Skip to content

ListBox.TryGetItemIndexAt method (1 of 2)

Attempts to find the item index for a mouse event routed by the window input router.

public bool TryGetItemIndexAt(MouseEventArgs e, out int index)

Attempts to find the item index at the specified position in this control’s coordinates.

public bool TryGetItemIndexAt(Point position, out int index)