語言

StatusBar.StatusBarPanelCollection.Remove(StatusBarPanel) 方法

定義

將指定的 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 方法。

適用於

另請參閱