Comment on page
Control.ControlCollection
Wisej.Web.Control ControlCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
C#
VB.NET
public class ControlCollection : ControlCollection, IList<Control>, ICollection<Control>, IEnumerable<Control>, IWisejSynchronized
Public Class ControlCollection
Inherits ControlCollection
Implements IList(Of Control), ICollection(Of Control), IEnumerable(Of Control), IWisejSynchronized
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.
Parameter | Type | Description |
---|---|---|
dispose | Indicates whether the controls removed from the collection should be disposed. |
Determines whether the specified control is a member of the collection.
Parameter | Type | Description |
---|---|---|
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.
Parameter | Type | Description |
---|---|---|
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.
Parameter | Type | Description |
---|---|---|
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.
Parameter | Type | Description |
---|---|---|
child | ||
throwException | true to throw an exception if the Control specified in the child parameter is not a control in the ControlCollection; otherwise, false. |
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 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.
Parameter | Type | Description |
---|---|---|
key | The name of the control to search for. |
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.
Parameter | Type | Description |
---|---|---|
key | The name of the child control to remove. |
Sets the index of the specified child control in the collection.
Name | Description |
---|---|
Represents a collection of child controls in a table layout container. |
Last modified 8d ago