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,表示要從集合中移除的面板。

例外狀況

指派到 value 參數的 StatusBarPanelnull

備註

當您從清單中移除面板時,集合中後續專案的索引會變更。 已刪除已移除面板的所有資訊。 您可以使用這個方法,藉由指定要從集合中移除的實際 StatusBarPanel 面板,從 中移除特定面板 StatusBar 。 若要指定要移除的面板索引,而不是面板本身,請使用 RemoveAt 方法。 若要從集合中移除所有面板,請使用 Clear 方法。

適用於

另請參閱