Wisej.Web.Control ControlCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.5.0.0)
Represents a collection of Control objects.
Initializes a new instance of the ControlCollection class.
Name | Type | Description |
---|---|---|
Boolean: Returns whether the owner control has already been disposed.
Control: Returns the Control at the specified indexed location.
Control: Returns the Control with the specified key in the collection.
Control: Returns the control that owns this ControlCollection.
Adds the specified control to the control collection.
Adds an array of control objects to the collection.
Removes all controls from the collection.
Removes and disposes all controls from the collection.
Determines whether the specified control is a member of the collection.
Returns: Boolean. true if the Control is a member of the collection; otherwise, false.
Determines whether the ControlCollection contains an item with the specified key.
Returns: Boolean. true if the ControlCollection contains an item with the specified key; otherwise, false.
Searches for controls by their type and builds an array of all the controls that match.
Returns: Control[]. Array of controls that are derived from the specified type .
Throws:
ArgumentNullException type is null.
Searches for controls by their name and builds an array of all the controls that match.
Returns: Control[]. Array of controls with the specified name.
Throws:
ArgumentNullException The key parameter is null or an empty string ("").
Retrieves the index of the specified child control within the control collection, and optionally raises an exception if the specified control is not within the control collection.
Returns: Int32. A zero-based index value that represents the location of the specified child control within the control collection; otherwise -1 if the specified Control is not found in the ControlCollection.
Throws:
ArgumentException The child Control is not in the ControlCollection, and the throwException parameter value is true.
Retrieves a reference to an enumerator object that is used to iterate over a ControlCollection.
Returns: IEnumerator. An IEnumerator.
Retrieves the index of the specified control in the control collection.
Returns: Int32. A zero-based index value that represents the position of the specified Control in the ControlCollection.
Retrieves the index of the first occurrence of the specified item within the collection.
Returns: Int32. The zero-based index of the first occurrence of the control with the specified name in the collection.
Removes the specified control from the control collection.
Removes the child control with the specified key.
Sets the index of the specified child control in the collection.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
child
The Control to add.
controls
An array of Control objects to add to the collection.
dispose
Indicates whether the controls removed from the collection should be disposed.
control
The Control to locate in the collection.
key
The key to locate in the ControlCollection.
type
The type of the controls to locate in the ControlCollection.
searchAllChildren
true to search all child controls; otherwise, false.
key
The key to located in the ControlCollection.
searchAllChildren
true to search all child controls; otherwise, false.
child
The Control to search for in the control collection.
throwException
true to throw an exception if the Control specified in the child parameter is not a control in the ControlCollection; otherwise, false.
control
The Control to locate in the collection.
key
The name of the control to search for.
child
The Control to remove.
key
The name of the child control to remove.
child
The child control to search for.
newIndex
The new index value of the control.
owner
The Control that owns this collection.