Control.AddedControl(Control, Int32) 方法

定義

在子控制項加入 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

已加入的 ControlThe Control that has been added.

index
Int32

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

例外狀況

controlSubstitution 控制項。control is a Substitution control.

備註

當控制項加入至 Controls 集合之後,就會立即呼叫 AddedControl 方法。The AddedControl method is called immediately after a control is added to the Controls collection.

適用於

另請參閱