StatusBar::StatusBarPanelCollection::Remove Method (StatusBarPanel^)
.NET Framework (current version)
Removes the specified StatusBarPanel from the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- value
-
Type:
System.Windows.Forms::StatusBarPanel^
The StatusBarPanel representing the panel to remove from the collection.
| Exception | Condition |
|---|---|
| ArgumentNullException | The StatusBarPanel assigned to the value parameter is null. |
When you remove a panel from the list, the indexes change for subsequent items in the collection. All information about the removed panel is deleted. You can use this method to remove a specific panel from the StatusBar by specifying the actual StatusBarPanel to remove from the collection. To specify the index of the panel to remove instead of the panel itself, use the RemoveAt method. To remove all panels from the collection, use the Clear method.
.NET Framework
Available since 1.1
Available since 1.1
Show: