ListBox.IntegerCollection.Remove(Int32) メソッド

定義

指定した整数を ListBox.IntegerCollectionから削除します。

public:
 void Remove(int item);
public void Remove(int item);
member this.Remove : int -> unit
Public Sub Remove (item As Integer)

パラメーター

item
Int32

ListBox.IntegerCollectionから削除する整数。

注釈

ListBox.IntegerCollectionから整数を削除すると、コレクション内の後続の整数のインデックスが変更されます。 削除された整数に関するすべての情報が削除されます。 Removeメソッドを使用すると、リストから削除する実際の項目を指定することで、リストから特定の項目を削除できます。 整数自体の代わりに削除する整数のインデックスを指定するには、 RemoveAt メソッドを使用します。

整数が ListBox.IntegerCollectionに含まれていない場合、このメソッドは何も行いません。

適用対象