HtmlTable.HtmlTableRowControlCollection.AddAt(Int32, Control) Método

Definição

Adiciona o objeto Control especificado à coleção.Adds the specified Control object to the collection. O novo controle é adicionado à matriz na localização do índice especificada.The new control is added to the array at the specified index location.

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)

Parâmetros

index
Int32

O local na matriz à qual você deseja adicionar o controle filho.The location in the array at which to add the child control.

child
Control

O Control a adicionar à coleção.The Control to add to the collection.

Exceções

O controle adicionado deve ser do tipo HtmlTableRow.The added control must be of type HtmlTableRow.

Comentários

O controle adicionado só pode ser um HtmlTableRow controle; caso contrário, um ArgumentException é gerado.The added control can only be an HtmlTableRow control; otherwise, an ArgumentException is thrown.

Aplica-se a

Confira também