Szerkesztés

Megosztás a következőn keresztül:


ControlDesigner.OnComponentChanged(Object, ComponentChangedEventArgs) Method

Definition

Called when the associated control changes.

public:
 virtual void OnComponentChanged(System::Object ^ sender, System::ComponentModel::Design::ComponentChangedEventArgs ^ ce);
public virtual void OnComponentChanged (object sender, System.ComponentModel.Design.ComponentChangedEventArgs ce);
abstract member OnComponentChanged : obj * System.ComponentModel.Design.ComponentChangedEventArgs -> unit
override this.OnComponentChanged : obj * System.ComponentModel.Design.ComponentChangedEventArgs -> unit
Public Overridable Sub OnComponentChanged (sender As Object, ce As ComponentChangedEventArgs)

Parameters

sender
Object

The source of the event.

ce
ComponentChangedEventArgs

A ComponentChangedEventArgs object that contains the event data.

Remarks

The OnComponentChanged method is called when a property on the associated control is changed. It allows the implementer to do any processing that might be required after a property change. Calling the OnComponentChanged method causes the design host to call the GetDesignTimeHtml method. The base implementation of the OnComponentChanged method also persists the control in the page markup.

Notes to Inheritors

Override the OnComponentChanged(Object, ComponentChangedEventArgs) method to provide additional processing before persisting the control and before refreshing the design-time HTML markup.

When overriding the OnComponentChanged(Object, ComponentChangedEventArgs) method in a derived class, make sure that you call the OnComponentChanged(Object, ComponentChangedEventArgs) method for the base class so that registered delegates receive the event.

Applies to

See also