語言

StatusBar.StatusBarPanelCollection.RemoveAt(Int32) 方法

定義

移除集合中指定索引處的 。StatusBarPanel

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

參數

index
Int32

要移除的項目的零基指數。

實作

例外狀況

參數index小於零或大於或等於類別Count性質的值StatusBar.StatusBarPanelCollection。

備註

當你從收藏中移除一個面板時,收藏中後續面板的索引也會改變。 所有關於移除面板的資訊都會被刪除。 你可以用這個方法,透過指定要從集合中移除的面板索引,來移除該面板。 要指定要移除的面板,而不是面板的索引,請使用這個 Remove 方法。 要從控制器中移除所有面板 StatusBar ,請使用這個 Clear 方法。

適用於

另請參閱