語言

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

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

例外狀況

加法 Control 必須為 類型 TableCell。

備註

新增的控制項只能 TableCell 是一個物件;否則,會拋出 an ArgumentException 。

適用於

另請參閱