HtmlTableRow::HtmlTableCellControlCollection::AddAt Method (Int32, Control^)

 

Adds the specified Control object to the collection at the specified index location.

Namespace:   System.Web.UI.HtmlControls
Assembly:  System.Web (in System.Web.dll)

public:
virtual void AddAt(
	int index,
	Control^ child
) override

Parameters

index
Type: System::Int32

The location in the array at which to add the child control.

child
Type: System.Web.UI::Control^

The Control to add to the collection.

Exception Condition
ArgumentException

The added control must be of type HtmlTableCell.

The added control can only be an HtmlTableCell control; otherwise, an ArgumentException exception is thrown.

.NET Framework
Available since 1.1
Return to top
Show: