windowsforms-devexpress-dot-xtraeditors-dot-baseedit-e298ac52.md
Gets or sets the editor’s border style.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Appearance")]
public override BorderStyles BorderStyle { get; set; }
<DXCategory("Appearance")>
Public Overrides Property BorderStyle As BorderStyles
| Type | Description |
|---|---|
| BorderStyles |
A BorderStyles enumeration value specifying the editor’s border style.
|
Available values:
| Name | Description |
|---|---|
| NoBorder |
No border.
| | Simple |
Flat border.
| | Flat |
Deprecated. Borders are flat.
| | HotFlat |
Deprecated. Flat border. The border and the client area are highlighted when the cursor hovers the editor.
| | 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.
| | Style3D |
Deprecated. Three-dimensional border.
| | Office2003 |
Deprecated. Office 2003-style border.
| | Default |
The default border style depends on the application skin.
|
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.
winforms-tab-control-custom-header-buttons/CS/XtraTabControl_CustomButtons/Form1.cs#L55
picEdit.Dock = DockStyle.Fill;
picEdit.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
picEdit.Properties.PictureAlignment = ContentAlignment.MiddleCenter;
headerEdit.Parent = gridView.GridControl;
headerEdit.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
}
winforms-tab-control-custom-header-buttons/VB/XtraTabControl_CustomButtons/Form1.vb#L61
picEdit.Dock = DockStyle.Fill
picEdit.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder
picEdit.Properties.PictureAlignment = ContentAlignment.MiddleCenter
headerEdit.Parent = gridView.GridControl
headerEdit.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder
End Sub
See Also