ComponentToolCollection

Wisej.Web.ComponentToolCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.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>

Constructors

Initializes a new instance of the ComponentToolCollection class not bound to any control.

Initializes a new instance of the ComponentToolCollection class.

NameTypeDescription

owner

The Control control that owns this collection.

Properties

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.

Methods

Adds a ComponentTool with the specified name and image source to the collection.

ParameterTypeDescription

name

The name of the ComponentTool that is being added.

imageSource

The image of the ComponentTool that is being added.

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

Adds a ComponentTool to the collection.

ParameterTypeDescription

tool

A ComponentTool that represents the panel to add to the collection.

Throws:

Adds an array of ComponentTool to the collection

ParameterTypeDescription

tools

Removes all tools from the collection.

Removes and optionally disposes all tools from the collection.

ParameterTypeDescription

dispose

Indicates whether the removed items should be disposed.

Determines whether the specified panel is located within the collection.

ParameterTypeDescription

tool

The ComponentTool to locate in the collection.

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

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

ParameterTypeDescription

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.

ParameterTypeDescription

tool

The ComponentTool to locate in the collection.

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.

ParameterTypeDescription

key

The name of the ComponentTool to find in the collection.

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.

ParameterTypeDescription

index

The zero-based index location where the panel is inserted.

tool

A ComponentTool representing the panel to insert.

Throws:

Removes the specified ComponentTool from the collection.

ParameterTypeDescription

tool

The ComponentTool representing the panel to remove from the collection.

Returns: Boolean.

Throws:

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

ParameterTypeDescription

index

The zero-based index of the item to remove.

Throws:

Removes the ComponentTool with the specified key from the collection.

ParameterTypeDescription

key

The name of the ComponentTool to remove from the collection.

Last updated