StatusBar.StatusBarPanelCollection.Remove(StatusBarPanel) Method

Definition

Removes the specified StatusBarPanel from the collection.

C#
public virtual void Remove(System.Windows.Forms.StatusBarPanel value);

Parameters

value
StatusBarPanel

The StatusBarPanel representing the panel to remove from the collection.

Exceptions

The StatusBarPanel assigned to the value parameter is null.

Remarks

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.

Applies to

Produkt Versioner
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 10

See also