ListView.CheckedIndexCollection.IList.Add(Object) 方法

定義

將項目新增至集合。

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
int IList.Add (object? value);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (value As Object) As Integer Implements IList.Add

參數

value
Object

要加入至 ListView.CheckedIndexCollection 的物件。

傳回

Int32

集合中 value 的以零起始的索引。

實作

例外狀況

一律擲回。

備註

您無法直接變更 CheckedListBox.CheckedIndexCollection 類別。 若要將專案新增至 CheckedListBox.CheckedIndexCollection ,請使用 Checked 屬性。

適用於