Wisej.Web.ComponentToolCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.5.0.0)
Represents a set of tool widgets associated with a component. The component includes the tools panel according to its design. For example, the Form component includes the tools in its caption bar. Other components may include the tools elsewhere.
public class ComponentToolCollection : IList, ICollection, IEnumerable, IList<ComponentTool>, ICollection<ComponentTool>, IEnumerable<ComponentTool>Public Class ComponentToolCollection
Inherits IList
Implements ICollection, IEnumerable, IList(Of ComponentTool), ICollection(Of ComponentTool), IEnumerable(Of ComponentTool)Initializes a new instance of the class not bound to any control.
Initializes a new instance of the class.
: Returns a value indicating whether this collection is read-only.
: Returns or sets the at the specified index.
: Returns the identified by the name.
Adds a with the specified name and image source to the collection.
Returns: . A that represents the panel that was added to the collection.
Adds a to the collection.
Throws:
The being added to the collection was null.
The parent of the specified in the tool parameter is not null.
Adds an array of to the collection
Removes all tools from the collection.
Removes and optionally disposes all tools from the collection.
Determines whether the specified panel is located within the collection.
Returns: . true if the panel is located within the collection; otherwise, false.
Determines whether the collection contains a with the specified key.
Returns: . true to indicate the collection contains a with the specified key; otherwise, false.
Returns an enumerator to use to iterate through the item collection.
Returns: . An that represents the item collection.
Returns the index within the collection of the specified panel.
Returns: . The zero-based index where the panel is located within the collection; otherwise, negative one (-1).
Returns the index of the first occurrence of a with the specified key.
Returns: . The zero-based index of the first occurrence of the with the specified key, if found; otherwise, -1.
Inserts the specified into the collection at the specified index.
Throws:
The tool parameter is null.
The tool parameter's parent is not null.
The index parameter is less than zero or greater than the value of the property of the class.
Removes the specified from the collection.
Returns: .
Throws:
The assigned to the tool parameter is null.
Removes the located at the specified index within the collection.
Throws:
The index parameter is less than zero or greater than or equal to the value of the property of the class.
Removes the with the specified key from the collection.
owner
The Control control that owns this collection.
name
The name of the ComponentTool that is being added.
imageSource
The image of the ComponentTool that is being added.
tool
A ComponentTool that represents the panel to add to the collection.
tools
dispose
Indicates whether the removed items should be disposed.
tool
The ComponentTool to locate in the collection.
key
The name of the item to find in the collection.
tool
The ComponentTool to locate in the collection.
key
The name of the ComponentTool to find in the collection.
index
The zero-based index location where the panel is inserted.
tool
A ComponentTool representing the panel to insert.
tool
The ComponentTool representing the panel to remove from the collection.
index
The zero-based index of the item to remove.
key
The name of the ComponentTool to remove from the collection.