Skip to main content
Version: 3.5

DesktopTaskBarItemCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the collection of DesktopTaskBarItem controls in a Desktop control.

public class DesktopTaskBarItemCollection : IList, ICollection, IEnumerable

Constructors

Instance memberDesktopTaskBarItemCollection(owner)

Initializes a new instance of the DesktopTaskBarItemCollection class.

NameTypeDescription
ownerDesktopThe Desktop control that owns this collection.

Properties

Instance memberIsReadOnly

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

Instance memberItem(index)

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

Instance memberItem(name)

DesktopTaskBarItem: Returns the DesktopTaskBarItem identified by the name.

Methods

Instance memberAdd(text)

Adds a DesktopTaskBarItem with the specified text to the collection.

ParameterTypeDescription
textStringThe text for the DesktopTaskBarItem that is being added.

Returns: DesktopTaskBarItem. A DesktopTaskBarItem that represents the item that was added to the collection.

Instance memberAdd(item)

Adds a DesktopTaskBarItem to the collection.

ParameterTypeDescription
itemDesktopTaskBarItemA DesktopTaskBarItem that represents the panel to add to the collection.

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

Throws:

Instance memberAddRange(items)

Adds an array of DesktopTaskBarItem to the collection.

ParameterTypeDescription
itemsDesktopTaskBarItem[]Array of DesktopTaskBarItem objects to add to the collection.

Instance memberClear()

Removes all DesktopTaskBarItem objects from the collection.

Instance memberClear(dispose)

Removes and optionally disposes all DesktopTaskBarItem objects from the collection.

ParameterTypeDescription
disposeBooleanIndicates whether the removed items should be disposed.

Instance memberContains(button)

Determines whether the specified DesktopTaskBarItem is located within the collection.

ParameterTypeDescription
buttonDesktopTaskBarItemThe DesktopTaskBarItem to locate in the collection.

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

Instance memberContainsKey(key)

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

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

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

Instance memberGetEnumerator()

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

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

Instance memberIndexOf(button)

Returns the index within the collection of the specified DesktopTaskBarItem.

ParameterTypeDescription
buttonDesktopTaskBarItemThe DesktopTaskBarItem to locate in the collection.

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

Instance memberIndexOfKey(key)

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

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

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

Instance memberInsert(index, button)

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

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

Throws:

Instance memberRemove(item)

Removes the specified DesktopTaskBarItem from the collection.

ParameterTypeDescription
itemDesktopTaskBarItemThe DesktopTaskBarItem representing the panel to remove from the collection.

Throws:

Instance memberRemoveAt(index)

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

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

Throws:

Instance memberRemoveByKey(key)

Removes the DesktopTaskBarItem with the specified key from the collection.

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