ListViewVirtualItemsSelectionRangeChangedEventArgs 建構函式

定義

初始化 ListViewVirtualItemsSelectionRangeChangedEventArgs 類別的新執行個體。

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)

參數

startIndex
Int32

範圍中,已變更之第一個項目的索引。

endIndex
Int32

範圍中,已變更之最後一個項目的索引。

isSelected
Boolean

true 表示已選取項目,而 false 則表示已取消選取項目。

例外狀況

startIndex 大於 endIndex

備註

ListViewVirtualItemsSelectionRangeChangedEventArgs 專案從選取專案變更為取消選取,並取消選取時就會發生。 參數 isSelected 會指出專案範圍的目前狀態。

適用於