Back to Devexpress

BaseEdit.BorderStyle Property

windowsforms-devexpress-dot-xtraeditors-dot-baseedit-e298ac52.md

latest5.6 KB
Original Source

BaseEdit.BorderStyle Property

Gets or sets the editor’s border style.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Appearance")]
public override BorderStyles BorderStyle { get; set; }
vb
<DXCategory("Appearance")>
Public Overrides Property BorderStyle As BorderStyles

Property Value

TypeDescription
BorderStyles

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

|

Available values:

NameDescription
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.

|

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.

winforms-tab-control-custom-header-buttons/CS/XtraTabControl_CustomButtons/Form1.cs#L55

csharp
picEdit.Dock = DockStyle.Fill;
picEdit.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
picEdit.Properties.PictureAlignment = ContentAlignment.MiddleCenter;

winforms-grid-display-text-editor-in-column-header/CS/WindowsApplication1/MyGridColumnRenameHelper.cs#L67

csharp
headerEdit.Parent = gridView.GridControl;
    headerEdit.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
}

winforms-tab-control-custom-header-buttons/VB/XtraTabControl_CustomButtons/Form1.vb#L61

vb
picEdit.Dock = DockStyle.Fill
picEdit.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder
picEdit.Properties.PictureAlignment = ContentAlignment.MiddleCenter

winforms-grid-display-text-editor-in-column-header/VB/WindowsApplication1/MyGridColumnRenameHelper.vb#L64

vb
headerEdit.Parent = gridView.GridControl
    headerEdit.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder
End Sub

See Also

BorderStyles

Properties

BaseEdit Class

BaseEdit Members

DevExpress.XtraEditors Namespace