TableRow.CellControlCollection.AddAt(Int32, Control) 方法

定義

將指定的 Control 物件加入至 TableRow.CellControlCollection 集合中。 新控制項加入至指定索引位置的陣列。

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)

參數

index
Int32

要加入子控制項之陣列中的位置。

child
Control

要加入至 ControlTableRow.CellControlCollection

例外狀況

加入的 Control 必須是 TableCell 型別。

備註

加入的控制項只能是 TableCell 物件, ArgumentException 否則會擲回 。

適用於

另請參閱