Skip to main content
A newer version of this page is available. .

PanelControl.BorderStyle Property

Gets or sets the panel’s border style.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v18.2.dll

Declaration

[DXCategory("Appearance")]
public BorderStyles BorderStyle { get; set; }

Property Value

Type Description
BorderStyles

A BorderStyles enumeration value specifying the panel’s border style.

Available values:

Name Description
NoBorder

There are no borders.

The image below demonstrates the NoBorder style applied to the ButtonEdit control.

ButtonBorderStyle_NoBorder

Simple

Borders are flat.

The image below demonstrates the Simple style applied to the ButtonEdit control.

ButtonBorderStyle_Simple

Flat

Borders are flat.

The image below demonstrates the Flat style applied to the ButtonEdit control.

ButtonBorderStyleFlat

HotFlat

Borders are flat. Borders and the client area are highlighted when the mouse pointer is positioned over them.

The image below demonstrates the HotFlat style applied to the ButtonEdit control.

ButtonBorderStyle_HotFlat

ButtonBorderStyle_HotFlat_Focused

UltraFlat

Borders have an Office XP style. Borders and the client area are highlighted when the mouse pointer is positioned over them or they are focused. Otherwise, there are no borders.

The image below demonstrates the UltraFlat style applied to the ButtonEdit control.

ButtonBorderStyle_UltraFlat

ButtonBorderStyle_UltraFlat_Focused

Style3D

Borders are three-dimensional.

The image below demonstrates the Style3D style applied to the ButtonEdit control.

ButtonBorderStyle_Style3D

Office2003

Borders have an Office 2003 style.

The image below demonstrates the Office2003 style applied to a ButtonEdit control.

Office2003

Default

The border style is determined by the current Look-and-Feel settings.

For example, text editors’ borders are painted according to the RepositoryItem.LookAndFeel object’s settings.

Remarks

If the BorderStyle property is set to the BorderStyles.Default value, the panel’s border style is controlled by its look and feel settings. The panel’s look and feel settings can be accessed via its XtraScrollableControl.LookAndFeel inherited property.

If the BorderStyle property is set to BorderStyles.NoBorder and no background color is explicitly assigned to the panel via the PanelControl.BackColor property, the panel’s background will be transparent.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BorderStyle property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also