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,此方法不执行任何操作。

适用于