StatusBar.StatusBarPanelCollection.Remove Method (StatusBarPanel)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes the specified StatusBarPanel from the collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public virtual void Remove(
	StatusBarPanel value
)

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
Return to top
Show: