StatusBar.StatusBarPanelCollection.RemoveAt(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移除集合中指定索引處的 。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 方法。