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 该方法。

适用于

另请参阅