ComponentToolCollection
Wisej.Web.ComponentToolCollection
Last updated
Wisej.Web.ComponentToolCollection
Last updated
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.0.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.
Initializes a new instance of the ComponentToolCollection class not bound to any control.
Initializes a new instance of the ComponentToolCollection class.
owner
Boolean: Returns a value indicating whether this collection is read-only.
ComponentTool: Returns or sets the ComponentTool at the specified index.
ComponentTool: Returns the ComponentTool identified by the name.
Adds a ComponentTool with the specified name and image source to the collection.
name
imageSource
Returns: ComponentTool. A ComponentTool that represents the panel that was added to the collection.
Adds a ComponentTool to the collection.
tool
Throws:
ArgumentNullException The ComponentTool being added to the collection was null.
ArgumentException The parent of the ComponentTool specified in the tool parameter is not null.
Adds an array of ComponentTool to the collection
tools
Removes all tools from the collection.
Removes and optionally disposes all tools from the collection.
dispose
Indicates whether the removed items should be disposed.
Determines whether the specified panel is located within the collection.
tool
Returns: Boolean. true if the panel is located within the collection; otherwise, false.
Determines whether the collection contains a ComponentTool with the specified key.
key
The name of the item to find in the collection.
Returns: Boolean. true to indicate the collection contains a ComponentTool with the specified key; otherwise, false.
Returns an enumerator to use to iterate through the item collection.
Returns: IEnumerator. An IEnumerator that represents the item collection.
Returns the index within the collection of the specified panel.
tool
Returns: Int32. 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 ComponentTool with the specified key.
key
Returns: Int32. The zero-based index of the first occurrence of the ComponentTool with the specified key, if found; otherwise, -1.
Inserts the specified ComponentTool into the collection at the specified index.
index
The zero-based index location where the panel is inserted.
tool
Throws:
ArgumentNullException The tool parameter is null.
ArgumentException The tool 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 ComponentToolCollection class.
Removes the specified ComponentTool from the collection.
tool
Returns: Boolean.
Throws:
ArgumentNullException The ComponentTool assigned to the tool parameter is null.
Removes the ComponentTool located at the specified index within the collection.
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 ComponentToolCollection class.
Removes the ComponentTool with the specified key from the collection.
key
The control that owns this collection.
The name of the that is being added.
The image of the that is being added.
A that represents the panel to add to the collection.
The to locate in the collection.
The to locate in the collection.
The name of the to find in the collection.
A representing the panel to insert.
The representing the panel to remove from the collection.
The name of the to remove from the collection.