語言

Table.RowControlCollection.Add(Control) 方法

定義

將指定的 Control 物件加入集合中 Table.RowControlCollection

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

public:
 override void Add(System::Web::UI::Control ^ child);
public override void Add(System.Web.UI.Control child);
override this.Add : System.Web.UI.Control -> unit
Public Overrides Sub Add (child As Control)

參數

child
Control

Control 要加到 Table.RowControlCollection

例外狀況

由指定的 child 物件不是 TableRow

備註

使用該 Add 方法為集合新增一個控制項 Table.RowControlCollection 。 指定的控制項會被加入到陣列的末尾。 控制只能是控制的一個實例 TableRow

若要在特定索引位置新增控制項, Table.RowControlCollection 請使用該 AddAt 方法。

適用於

另請參閱