Skip to main content

BaseEdit.BorderStyle Property

Gets or sets the editor’s border style.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

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

Property Value

Type Description
BorderStyles

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

Available values:

Name Description
NoBorder

No border.

ButtonBorderStyle_NoBorder

Simple

Flat border.

ButtonBorderStyle_Simple

Flat

Deprecated. Borders are flat.

ButtonBorderStyleFlat

HotFlat

Deprecated. Flat border. The border and the client area are highlighted when the cursor hovers the editor.

ButtonBorderStyle_HotFlat

ButtonBorderStyle_HotFlat_Focused

UltraFlat

Deprecated. Flat border in the Office XP style. Border and the client area are highlighted when the mouse pointer hovers the editor; otherwise, no border.

ButtonBorderStyle_UltraFlat

ButtonBorderStyle_UltraFlat_Focused

Style3D

Deprecated. Three-dimensional border.

ButtonBorderStyle_Style3D

Office2003

Deprecated. Office 2003-style border.

Office2003

Default

The default border style depends on the application skin.

Remarks

The manner in which editor borders should be drawn is specified by the RepositoryItem.BorderStyle property of the corresponding repository item. This property value is synchronized with the BorderStyle property.

If the BorderStyle property value is BorderStyles.Default, the border’s look and feel is specified by the editor’s BaseEdit.LookAndFeel property.

The following code snippets (auto-collected from DevExpress Examples) contain references 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