ControlDesignerOnComponentChanged Method

Called when the associated control changes.

Namespace:   System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)

public virtual void OnComponentChanged(
	object sender,
	ComponentChangedEventArgs ce
virtual void OnComponentChanged(
	Object^ sender,
	ComponentChangedEventArgs^ ce
abstract OnComponentChanged : 
        sender:Object *
        ce:ComponentChangedEventArgs -> unit
override OnComponentChanged : 
        sender:Object *
        ce:ComponentChangedEventArgs -> unit
Public Overridable Sub OnComponentChanged (
	sender As Object,
	ce As ComponentChangedEventArgs



The source of the event.


A ComponentChangedEventArgs object that contains the event data.


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 method to provide additional processing before persisting the control and before refreshing the design-time HTML markup.

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

Version Information
.NET Framework
Available since 1.1
Return to top