ToolBar.ToolBarButtonCollection
Wisej.Web.ToolBar ToolBarButtonCollection
Last updated
Wisej.Web.ToolBar ToolBarButtonCollection
Last updated
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents the collection of ToolBarButton controls in a ToolBar control.
Initializes a new instance of the ToolBarButtonCollection class.
Boolean: Returns a value indicating whether this collection is read-only.
ToolBarButton: Returns or sets the ToolBarButton at the specified index.
ToolBarButton: Returns the ToolBarButton identified by the name.
Adds a ToolBarButton with the specified text to the collection.
Parameter | Type | Description |
---|---|---|
text | The text for the ToolBarButton that is being added. |
Returns: ToolBarButton. A ToolBarButton that represents the panel that was added to the collection.
Adds a ToolBarButton to the collection.
Parameter | Type | Description |
---|---|---|
button | A ToolBarButton that represents the panel to add to the collection. |
Returns: Int32. The zero-based index of the item in the collection.
Throws:
ArgumentNullException The ToolBarButton being added to the collection is null.
ArgumentException The parent of the ToolBarButton specified in the button parameter is not null.
Adds an array of ToolBarButton to the collection.
Parameter | Type | Description |
---|---|---|
buttons | Array of ToolBarButton objects to add to the collection. |
Removes all ToolBarButton objects from the collection.
Removes and optionally disposes all ToolBarButton objects from the collection.
Parameter | Type | Description |
---|---|---|
dispose | Indicates whether the removed items should be disposed. |
Determines whether the specified ToolBarButton is located within the collection.
Parameter | Type | Description |
---|---|---|
button | The ToolBarButton to locate in the collection. |
Returns: Boolean. true if the ToolBarButton is located within the collection; otherwise, false.
Determines whether the collection contains a ToolBarButton 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 ToolBarButton with the specified key; otherwise, false.
Returns an enumerator to use to iterate through the ToolBarButton objects in the collection.
Returns: IEnumerator. An IEnumerator that represents the item collection.
Returns the index within the collection of the specified ToolBarButton.
Parameter | Type | Description |
---|---|---|
button | The ToolBarButton to locate in the collection. |
Returns: Int32. The zero-based index where the ToolBarButton is located within the collection; otherwise, negative one (-1).
Returns the index of the first occurrence of a ToolBarButton with the specified key.
Parameter | Type | Description |
---|---|---|
key | The name of the ToolBarButton to find in the collection. |
Returns: Int32. The zero-based index of the first occurrence of the ToolBarButton with the specified key, if found; otherwise, -1.
Inserts the specified ToolBarButton into the collection at the specified index.
Parameter | Type | Description |
---|---|---|
index | The zero-based index location where the panel is inserted. | |
button | A ToolBarButton representing the panel to insert. |
Throws:
ArgumentNullException The button parameter is null.
ArgumentException The button parameter's parent is not null.
ArgumentOutOfRangeException The index parameter is less than zero or greater than the value of the Count property of the ToolBarButtonCollection class.
Removes the specified ToolBarButton from the collection.
Parameter | Type | Description |
---|---|---|
button | The ToolBarButton representing the panel to remove from the collection. |
Throws:
ArgumentNullException The ToolBarButton assigned to the button parameter is null.
Removes the ToolBarButton located at the specified index within the collection.
Parameter | Type | Description |
---|---|---|
index | The zero-based index of the item to remove. |
Throws:
ArgumentOutOfRangeException The index parameter is less than zero or greater than or equal to the value of the Count property of the ToolBarButtonCollection class.
Removes the ToolBarButton with the specified key from the collection.
Parameter | Type | Description |
---|---|---|
key | The name of the ToolBarButton to remove from the collection. |