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此方法不作為。

適用於