Class TypedControlCollection<T>
Restricts the client to add only controls of specific type into the control collection.
Inheritance
System.Object
TypedControlCollection<T>
Namespace: DotNetNuke.Web.UI.WebControls
Assembly: DotNetNuke.Web.dll
Syntax
public sealed class TypedControlCollection<T> : ControlCollection where T : Control
Type Parameters
| Name | Description |
|---|---|
| T | The type of control. |
Constructors
| Improve this Doc View SourceTypedControlCollection(Control)
Initializes a new instance of the TypedControlCollection<T> class.
Declaration
public TypedControlCollection(Control owner)
Parameters
| Type | Name | Description |
|---|---|---|
| Control | owner | The owner control. |
Methods
| Improve this Doc View SourceAdd(Control)
Restricts the client to add only controls of specific type into the control collection.
Declaration
public override void Add(Control child)
Parameters
| Type | Name | Description |
|---|---|---|
| Control | child |
AddAt(Int32, Control)
Restricts the client to add only controls of specific type into the control collection.
Declaration
public override void AddAt(int index, Control child)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| Control | child |