StatusBar::StatusBarPanelCollection::Item Property (Int32)

 

Gets or sets the StatusBarPanel at the specified index.

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

public:
property StatusBarPanel^ default[
	int index
] {
	virtual StatusBarPanel^ get(int index);
	virtual void set(int index, StatusBarPanel^ value);
}

Parameters

index
Type: System::Int32

The index of the panel in the collection to get or set.

Property Value

Type: System.Windows.Forms::StatusBarPanel^

A StatusBarPanel representing the panel located at the specified index within the collection.

Exception Condition
ArgumentOutOfRangeException

The index parameter is less than zero or greater than or equal to the value of the Count property of the StatusBar::StatusBarPanelCollection class.

ArgumentNullException

The StatusBarPanel assigned to the collection was null.

You can use this method to obtain the StatusBarPanel stored at a specific location within the collection. To determine the index of a specific panel within the collection, use the IndexOf method.

.NET Framework
Available since 1.1
Return to top
Show: