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.