ListViewVirtualItemsSelectionRangeChangedEventArgs 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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當項目從選取(Selected)變為取消選取(Deselect),再從取消選取(Deselect)變成選取(Selected)時,就會發生這種情況。 參數 isSelected 表示該項目範圍目前的狀態。