DesignerAutoFormat::Style Property

 

Gets a DesignerAutoFormatStyle object that is used by the DesignerAutoFormat object to render a design-time preview of the associated control.

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

public:
property DesignerAutoFormatStyle^ Style {
	DesignerAutoFormatStyle^ get();
}

Property Value

Type: System.Web.UI.Design::DesignerAutoFormatStyle^

An object that is used by the DesignerAutoFormat object to render a design-time preview of the associated control.

Although the object returned by the Style property is read-only, each individual property that it contains can be set. For example, you can set the ForeColor or VerticalAlign property of the DesignerAutoFormatStyle object.

The following code example illustrates how to apply formatting to a Web server control by using the Style property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: