Adds the specified Control object to the collection. The new child is added to the array at the specified index location.
[Visual Basic] Overridable Public Sub AddAt( _ ByVal index As Integer, _ ByVal child As Control _ ) [C#] public virtual void AddAt( int index, Control child ); [C++] public: virtual void AddAt( int index, Control* child ); [JScript] public function AddAt( index : int, child : Control );
Exception Type | Condition |
---|---|
HttpException | Thrown if the control does not allow child controls. |
ArgumentException | Thrown if the child value is null. |
ControlCollection Class | ControlCollection Members | System.Web.UI Namespace