Uredi

Deli z drugimi prek


Table.RowControlCollection.AddAt(Int32, Control) Method

Definition

Adds the specified Control object to the Table.RowControlCollection collection. The new control is added to the array at the specified index location.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 override void AddAt(int index, System::Web::UI::Control ^ child);
public override void AddAt (int index, System.Web.UI.Control child);
override this.AddAt : int * System.Web.UI.Control -> unit
Public Overrides Sub AddAt (index As Integer, child As Control)

Parameters

index
Int32

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

child
Control

The Control object to add to the Table.RowControlCollection.

Exceptions

The control does not allow child controls.

The child value is null.

-or-

The object is not a TableRow.

Remarks

Use the AddAt method to add a new control to the Table.RowControlCollection collection at a specified location. The control can be only an instance of a TableRow control.

To add a control to the Table.RowControlCollection at the end of the Table.RowControlCollection, use the Add method.

Applies to

See also