Share via


StyleCollection.RemoveAt(Int32) 方法

定義

Style 物件的指定索引位置移除 StyleCollection 物件。

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

參數

index
Int32

要移除的 Style 物件之以零起始的索引位置。

備註

RemoveAt 可以使用方法, Style 從物件中移除位於指定索引位置的物件 StyleCollection 。 接著,會將該物件後面的所有專案 Style 移至最新狀態,以填滿空白位置。 移動的專案的索引也會更新。

若要 Style 從物件中移除特定物件 StyleCollection ,請使用 Remove 方法。 您也可以 Style 使用方法來移除集合中的每個物件 Clear

適用於

另請參閱