System.Web.UI.Design.DesignerAutoFormat.Apply Method

Applies the associated formatting to the specified control.

Syntax

public abstract void Apply (System.Web.UI.Control control)

Parameters

control
A Web server control to apply the formatting to.

Remarks

The DesignerAutoFormat.Apply(System.Web.UI.Control) method applies formatting to the specified control based on the DesignerAutoFormat.Name property. You can apply the styles directly to the control, or set the DesignerAutoFormat.Style property and then use the System.Web.UI.WebControls.WebControl.MergeStyle(System.Web.UI.WebControls.Style) method for the control to apply the style changes to the control.

Requirements

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