ControlDesigner::UpdateDesignTimeHtml Method
Refreshes the design-time HTML markup for the associated Web server control by calling the GetDesignTimeHtml method.
Assembly: System.Design (in System.Design.dll)
The UpdateDesignTimeHtml method is called by the design host to update the display of the associated Web server control at design time, such as when the control has been modified. Also, a control designer can call the UpdateDesignTimeHtml method after modifying values of the control to update the display of the control.
Note |
|---|
If you are calling the ComponentChanged event, or using the PropertyDescriptor object to set properties, the IComponentChangeService interface calls the UpdateDesignTimeHtml method for you. |
The following code example demonstrates how to respond to a Click event in a control designer to change the focus between regions in a multi-region control and use the UpdateDesignTimeHtml method to update the appearance of the control in the design host.
This code example is part of a larger example for the EditableDesignerRegion class.
- 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.
Note