Skip to main content
Version: 4.1

StatusBarPanelCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents the collection of StatusBarPanel controls in a StatusBar control.

public class StatusBarPanelCollection : IList, ICollection, IEnumerable, IList<StatusBarPanel>, ICollection<StatusBarPanel>, IEnumerable<StatusBarPanel>

Properties

Instance member IsReadOnly

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

Instance member Item(index)

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

Instance member Item(name)

StatusBarPanel: Returns the StatusBarPanel identified by the name.

Methods

Instance member Add(text)

Adds a StatusBarPanel with the specified text to the collection.

ParameterTypeDescription
textStringThe text for the StatusBarPanel that is being added.

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

Instance member Add(panel)

Adds a StatusBarPanel to the collection.

ParameterTypeDescription
panelStatusBarPanelA StatusBarPanel that represents the panel to add to the collection.

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

Throws:

Instance member AddRange(panels)

Adds an array of StatusBarPanel to the collection.

ParameterTypeDescription
panelsStatusBarPanel[]Array of StatusBarPanel objects to add to the collection.

Instance member Clear()

Removes all panels from the collection.

Instance member Clear(dispose)

Removes and optionally disposes all StatusBarPanel objects from the collection.

ParameterTypeDescription
disposeBooleanIndicates whether the removed StatusBarPanel objects should be disposed.

Instance member Contains(panel)

Determines whether the specified StatusBarPanel is located within the collection.

ParameterTypeDescription
panelStatusBarPanelThe StatusBarPanel to locate in the collection.

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

Instance member ContainsKey(key)

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

ParameterTypeDescription
keyStringThe 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.

Instance member GetEnumerator()

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

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

Instance member IndexOf(panel)

Returns the index within the collection of the specified StatusBarPanel.

ParameterTypeDescription
panelStatusBarPanelThe StatusBarPanel to locate in the collection.

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

Instance member IndexOfKey(key)

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

ParameterTypeDescription
keyStringThe name of the StatusBarPanel to find in the collection.

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

Instance member Insert(index, panel)

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

ParameterTypeDescription
indexInt32The zero-based index location where the panel is inserted.
panelStatusBarPanelA StatusBarPanel representing the panel to insert.

Throws:

Instance member Remove(panel)

Removes the specified StatusBarPanel from the collection.

ParameterTypeDescription
panelStatusBarPanelThe StatusBarPanel representing the panel to remove from the collection.

Throws:

Instance member RemoveAt(index)

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

ParameterTypeDescription
indexInt32The zero-based index of the item to remove.

Throws:

Instance member RemoveByKey(key)

Removes the StatusBarPanel with the specified key from the collection.

ParameterTypeDescription
keyStringThe name of the StatusBarPanel to remove from the collection.