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