HtmlTableRow.HtmlTableCellControlCollection.AddAt(Int32, Control) Método

Definição

Adiciona o objeto Control especificado à coleção no local de índice especificado.Adds the specified Control object to the collection 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 HtmlTableCell.The added control must be of type HtmlTableCell.

Comentários

O controle adicionado só pode ser um HtmlTableCell controle; caso contrário, uma ArgumentException exceção é lançada.The added control can only be an HtmlTableCell control; otherwise, an ArgumentException exception is thrown.

Aplica-se a

Confira também