語言

Table.RowControlCollection.AddAt(Int32, Control) 方法

定義

將指定的 Control 物件加入集合中 Table.RowControlCollection 。 新增控制項會加入陣列中指定的索引位置。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

要加入 Control的物件。Table.RowControlCollection

例外狀況

控制系統不允許使用兒童控制。

子節點值為 null。

-或-

該物件不是 TableRow。

備註

使用該 AddAt 方法在指定位置新增一個控制項到集合中 Table.RowControlCollection 。 控制只能是控制的一個實例 TableRow 。

要在 的末尾Table.RowControlCollection加上一個控制項Table.RowControlCollection,請使用以下Add方法。

適用於

另請參閱