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

定義

將項目加入至 CheckedListBox.CheckedIndexCollectionAdds an item to the CheckedListBox.CheckedIndexCollection. 如需這個成員的說明,請參閱 Add(Object)For a description of this member, see Add(Object).

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
Function Add (value As Object) As Integer Implements IList.Add

參數

value
Object

要加入 CheckedListBox.CheckedIndexCollection 的物件。The object to be added to the CheckedListBox.CheckedIndexCollection.

傳回

實作

例外狀況

一律擲回。Always thrown.

備註

您無法直接變更 CheckedListBox.CheckedIndexCollection 類別。You cannot change the CheckedListBox.CheckedIndexCollection class directly. 若要將專案加入至 CheckedListBox.CheckedIndexCollection,請使用 SetItemCheckedSetItemCheckState 方法。To add an item to the CheckedListBox.CheckedIndexCollection, use the SetItemChecked or SetItemCheckState method.

適用於