StatusBar.StatusBarPanelCollection

Wisej.Web.StatusBar StatusBarPanelCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.0.0.0)

Represents the collection of StatusBarPanel controls in a StatusBar control.

public class StatusBarPanelCollection : IList, ICollection, IEnumerable

Properties

IsReadOnly

Boolean: Returns a value indicating whether this collection is read-only.

Item(index)

StatusBarPanel: Returns or sets the StatusBarPanel at the specified index.

Item(name)

StatusBarPanel: Returns the StatusBarPanel identified by the name.

Methods

Add(text)

Adds a StatusBarPanel with the specified text to the collection.

Parameter
Type
Description

text

Returns: StatusBarPanel. A StatusBarPanel that represents the panel that was added to the collection.

Add(panel)

Adds a StatusBarPanel to the collection.

Parameter
Type
Description

panel

Returns: Int32. The zero-based index of the item in the collection.

Throws:

AddRange(panels)

Adds an array of StatusBarPanel to the collection.

Parameter
Type
Description

panels

Clear()

Removes all panels from the collection.

Clear(dispose)

Removes and optionally disposes all StatusBarPanel objects from the collection.

Parameter
Type
Description

dispose

Contains(panel)

Determines whether the specified StatusBarPanel is located within the collection.

Parameter
Type
Description

panel

Returns: Boolean. true if the StatusBarPanel is located within the collection; otherwise, false.

ContainsKey(key)

Determines whether the collection contains a StatusBarPanel with the specified key.

Parameter
Type
Description

key

The name of the item to find in the collection.

Returns: Boolean. true to indicate the collection contains a StatusBarPanel with the specified key; otherwise, false.

GetEnumerator()

Returns an enumerator to use to iterate through the StatusBarPanel objects in the collection.

Returns: IEnumerator. An IEnumerator that represents the item collection.

IndexOf(panel)

Returns the index within the collection of the specified StatusBarPanel.

Parameter
Type
Description

panel

Returns: Int32. The zero-based index where the StatusBarPanel is located within the collection; otherwise, negative one (-1).

IndexOfKey(key)

Returns the index of the first occurrence of a StatusBarPanel with the specified key.

Parameter
Type
Description

key

Returns: Int32. The zero-based index of the first occurrence of the StatusBarPanel with the specified key, if found; otherwise, -1.

Insert(index, panel)

Inserts the specified StatusBarPanel into the collection at the specified index.

Parameter
Type
Description

index

The zero-based index location where the panel is inserted.

panel

Throws:

Remove(panel)

Removes the specified StatusBarPanel from the collection.

Parameter
Type
Description

panel

Throws:

RemoveAt(index)

Removes the StatusBarPanel located at the specified index within the collection.

Parameter
Type
Description

index

The zero-based index of the item to remove.

Throws:

RemoveByKey(key)

Removes the StatusBarPanel with the specified key from the collection.

Parameter
Type
Description

key

Last updated