ControlDesigner::OnComponentChanged Method
Called when the associated control changes.
Assembly: System.Design (in System.Design.dll)
Parameters
- sender
- Type: System::Object
The source of the event.
- ce
- Type: System.ComponentModel.Design::ComponentChangedEventArgs
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 InheritorsOverride 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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.