System.Web.UI.Design.DesignerAutoFormat.GetPreviewControl Method

Returns a copy of the associated control in order to provide a preview before applying the format to the control.

Syntax

public virtual System.Web.UI.Control GetPreviewControl (System.Web.UI.Control runtimeControl)

Parameters

runtimeControl
A run-time version of the Web server control.

Returns

The DesignerAutoFormat.GetPreviewControl(System.Web.UI.Control) method returns a copy of the associated Web server control.

Remarks

The DesignerAutoFormat.GetPreviewControl(System.Web.UI.Control) method is used by visual designers, such as vsprvslong, in an AutoFormat dialog box to display a formatted run-time preview of the control at design time before applying the format to the actual control.

Regardless of the setting of the System.Web.UI.Design.SupportsPreviewControlAttribute attribute for the System.Web.UI.Design.ControlDesigner object, the DesignerAutoFormat.GetPreviewControl(System.Web.UI.Control) method returns a copy of the control in the runtimeControl parameter.

Requirements

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