System.Windows.Forms.ListViewInsertionMark.Index Property

Gets or sets the index of the item next to which the insertion mark appears.

Syntax

public int Index { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The insertion mark appears to the left of the item with the specified index if the ListViewInsertionMark.AppearsAfterItem property is set to false; otherwise, it appears to the right of the item. The insertion mark disappears automatically when a dragged item is inserted into the ListView.Items collection. To remove the insertion mark manually, for example, when an item is dragged onto itself or dragged outside the control, set the ListViewInsertionMark.Index value to -1.

Use the ListViewInsertionMark.NearestIndex(System.Drawing.Point) method to retrieve the index of the item closest to a specified location, such as the location of the mouse pointer when positioning an item in a drag-and-drop operation.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0