语言

Control.AddedControl(Control, Int32) 方法

定义

在将子控件添加到 Controls 对象的集合 Control 后调用。

protected public:
 virtual void AddedControl(System::Web::UI::Control ^ control, int index);
protected internal virtual void AddedControl(System.Web.UI.Control control, int index);
abstract member AddedControl : System.Web.UI.Control * int -> unit
override this.AddedControl : System.Web.UI.Control * int -> unit
Protected Friend Overridable Sub AddedControl (control As Control, index As Integer)

参数

control
Control

Control已添加的项。

index
Int32

集合中 Controls 控件的索引。

例外

control 是控件 Substitution 。

注解

将 AddedControl 控件添加到 Controls 集合后立即调用该方法。

适用于

另请参阅