StatusBar.StatusBarPanelCollection.Remove(StatusBarPanel) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將指定的 StatusBarPanel 資料從集合中移除。
public:
virtual void Remove(System::Windows::Forms::StatusBarPanel ^ value);
public virtual void Remove(System.Windows.Forms.StatusBarPanel value);
abstract member Remove : System.Windows.Forms.StatusBarPanel -> unit
override this.Remove : System.Windows.Forms.StatusBarPanel -> unit
Public Overridable Sub Remove (value As StatusBarPanel)
參數
- value
- StatusBarPanel
代表 StatusBarPanel 要從收藏中移除的面板。
例外狀況
賦予參數StatusBarPanel的參數value為 null。
備註
當你從列表中移除面板時,收藏中後續項目的索引會改變。 所有關於移除面板的資訊都會被刪除。 你可以用這個方法,透過指定StatusBar要從集合中移除的特定面板StatusBarPanel。 若要指定要移除面板的索引,而非面板本身,請使用該 RemoveAt 方法。 要從收藏中移除所有面板,請使用此 Clear 方法。