ListBox.IntegerCollection.RemoveAt(Int32) 方法

定義

ListBox.IntegerCollection 中移除在指定索引處的整數。

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

參數

index
Int32

待移除整數的以零起始的索引。

備註

當您從 ListBox.IntegerCollection 中移除整數時,索引會變更集合中後續整數的索引。 已刪除已移除整數的所有資訊。 您可以使用 RemoveAt 方法來從清單中移除特定整數,方法是指定要從清單中移除的整數索引。 若要指定要移除的專案,而不是專案的索引,請使用 Remove 方法。

適用於