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.

適用於

另請參閱