Share via


TableRow.CellControlCollection.AddAt(Int32, Control) Methode

Definition

Fügt der Control-Auflistung das angegebene TableRow.CellControlCollection-Objekt hinzu. Das neue Steuerelement wird dem Array an der angegebenen Indexposition hinzugefügt.

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)

Parameter

index
Int32

Die Position im Array, an der das untergeordnete Steuerelement hinzugefügt wird.

child
Control

Das Control, das in TableRow.CellControlCollection eingefügt werden soll.

Ausnahmen

Das hinzugefügte Control muss vom Typ TableCell sein.

Hinweise

Das hinzugefügte Steuerelement kann nur ein TableCell Objekt sein, andernfalls wird ein ArgumentException ausgelöst.

Gilt für:

Weitere Informationen