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

要加入 Table.RowControlCollectionControl 物件。

例外狀況

該控制項不允許子控制項。

子值為 null

-或-

物件不是 TableRow

備註

AddAt使用 方法,將新的控制項加入集合中指定的 Table.RowControlCollection 位置。 控制項只能是 控制項的 TableRow 實例。

若要將 控制項新增至 Table.RowControlCollectionTable.RowControlCollection 結尾處,請使用 Add 方法。

適用於

另請參閱