Language

CheckedListBox.CheckedIndexCollection.IList.Add(Object) メソッド

定義

CheckedListBox.CheckedIndexCollectionに項目を追加します。 このメンバーの説明については、 Add(Object)を参照してください。

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

 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

CheckedListBox.CheckedIndexCollectionに追加するオブジェクト。

戻り値

新しい要素が挿入された位置。項目がコレクションに挿入されなかったことを示す -1。

実装

例外

常にスローされます。

注釈

CheckedListBox.CheckedIndexCollection クラスを直接変更することはできません。 CheckedListBox.CheckedIndexCollectionに項目を追加するには、SetItemCheckedメソッドまたは SetItemCheckState メソッドを使用します。

適用対象