Provides the abstract base class for creating formats that can be applied to a custom Web server control at design time.
See Also: DesignerAutoFormat Members
System.Web.UI.Design.DesignerAutoFormat provides a base class that can be inherited from and extended to display a formatted custom Web server control at design time in a visual designer tool such as vsprvslong.
A control developer provides automatic formatting in order to help developers who use the control to select a preferred display. A custom System.Web.UI.Design.DesignerAutoFormat object works with a custom control designer to provide automatic formatting at design time for a custom control. For example, the System.Web.UI.WebControls.Calendar control provides a variety of formats that can be applied by a developer at design time.
To implement automatic formatting for a custom control:[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]
The System.Web.UI.Design.DesignerAutoFormat class provides the following members to support automatic formatting at design time:
The DesignerAutoFormat.Apply(System.Web.UI.Control) method, which applies the named format to the specified control.
The DesignerAutoFormat.GetPreviewControl(System.Web.UI.Control) method, which provides a copy of the control for previewing in an AutoFormat dialog box of a visual designer such as vsprvslong.
The DesignerAutoFormat.Name property, which provides the text to display in a list of formats in a visual designer.