StatusBar.StatusBarPanelCollection.Contains Method (StatusBarPanel)

 

Determines whether the specified panel is located within the collection.

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

public bool Contains(
	StatusBarPanel panel
)

Parameters

panel
Type: System.Windows.Forms.StatusBarPanel

The StatusBarPanel to locate in the collection.

Return Value

Type: System.Boolean

true if the panel is located within the collection; otherwise, false.

The Contains method enables you to determine whether a panel is a member of the collection. Once you know that the item is located within the collection, you can use the IndexOf method to determine where the panel is located within the collection.

.NET Framework
Available since 1.1
Return to top
Show: