System.Web.UI.WebControls.PanelStyle Class

Represents the style for a System.Web.UI.WebControls.Panel control.

See Also: PanelStyle Members


public class PanelStyle : Style


The System.Web.UI.WebControls.PanelStyle class is used to represent the style settings for a panel control. It encapsulates the properties that control the appearance of a panel and can be applied to multiple panel controls to provide a common appearance.

You can specify an image to display in the background of the panel by setting the PanelStyle.BackImageUrl property. The horizontal alignment of the contents of the panel is indicated by the PanelStyle.HorizontalAlign property. The direction of controls that contain text within the panel control can be specified by setting the PanelStyle.Direction property.


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