Control.AddedControl(Control, Int32) Method

Definition

Méthode appelée après qu’un contrôle enfant est ajouté à la collection Controls de l’objet Control.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
Protected Friend Overridable Sub AddedControl (control As Control, index As Integer)

Parameters

control
Control

Control ajoutée.The Control that has been added.

index
Int32

Index du contrôle dans la collection Controls.The index of the control in the Controls collection.

Exceptions

control est un contrôle Substitution.control is a Substitution control.

Remarks

La méthode AddedControl est appelée immédiatement après l’ajout d’un contrôle à la collection Controls.The AddedControl method is called immediately after a control is added to the Controls collection.

Applies to

See also