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.

例外狀況

備註

AddedControl方法在只有在控制項加入之後立即呼叫Controls集合。The AddedControl method is called immediately after a control is added to the Controls collection.

適用於

另請參閱