Bewerken

Delen via


ListViewVirtualItemsSelectionRangeChangedEventArgs Constructor

Definition

Initializes a new instance of the ListViewVirtualItemsSelectionRangeChangedEventArgs class.

public:
 ListViewVirtualItemsSelectionRangeChangedEventArgs(int startIndex, int endIndex, bool isSelected);
public ListViewVirtualItemsSelectionRangeChangedEventArgs (int startIndex, int endIndex, bool isSelected);
new System.Windows.Forms.ListViewVirtualItemsSelectionRangeChangedEventArgs : int * int * bool -> System.Windows.Forms.ListViewVirtualItemsSelectionRangeChangedEventArgs
Public Sub New (startIndex As Integer, endIndex As Integer, isSelected As Boolean)

Parameters

startIndex
Int32

The index of the first item in the range that has changed.

endIndex
Int32

The index of the last item in the range that has changed.

isSelected
Boolean

true to indicate the items are selected; false to indicate the items are deselected.

Exceptions

startIndex is larger than endIndex.

Remarks

The ListViewVirtualItemsSelectionRangeChangedEventArgs occurs when items are changed from selected to deselected, and deselected to selected. The isSelected parameter indicates the current state of the range of items.

Applies to