HtmlTable.HtmlTableRowControlCollection.AddAt(Int32, Control) 方法

定义

将指定的 Control 对象添加到集合中。 新控件将添加到位于指定索引位置的数组。

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要添加到集合中。

例外

添加的 HtmlTableRow控件的类型必须为 。

注解

添加的控件只能是控件 HtmlTableRow ;否则,将引发控件 ArgumentException

适用于

另请参阅