Control.AddedControl(Control, Int32) Control.AddedControl(Control, Int32) Control.AddedControl(Control, Int32) Method

定义

在子控件添加到 Control 对象的 Controls 集合后调用。Called after a child control is added to the Controls collection of the Control object.

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

参数

control
Control Control Control

已添加的 ControlThe Control that has been added.

index
Int32 Int32 Int32

Controls 集合中的控件索引。The index of the control in the Controls collection.

异常

注解

在将控件添加Controls到集合之后立即调用方法。AddedControlThe AddedControl method is called immediately after a control is added to the Controls collection.

适用于

另请参阅