Back to Devexpress

RepositoryItem.BorderStyle Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-ec610995.md

latest5.7 KB
Original Source

RepositoryItem.BorderStyle Property

Gets or sets the editor’s border style.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(BorderStyles.Default)]
[DXCategory("Appearance")]
public virtual BorderStyles BorderStyle { get; set; }
vb
<DXCategory("Appearance")>
<DefaultValue(BorderStyles.Default)>
Public Overridable Property BorderStyle As BorderStyles

Property Value

TypeDefaultDescription
BorderStylesDefault

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

Use the BorderStyle property to specify how the editor’s border should be drawn. If the property value is BorderStyles.Default, the border’s look and feel is specified by the editor’s RepositoryItem.LookAndFeel property.

This property is synchronized with the editor’s BaseEdit.BorderStyle property.

Changing the BorderStyle property value raises the RepositoryItem.PropertiesChanged event.

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-spreadsheet-assign-custom-in-place-editors/CS/Spreadsheet_CustomCellEditors/Form1.cs#L62

csharp
repository.AutoHeight = false;
repository.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;

winforms-spreadsheet-use-custom-cell-editors/CS/DevAVInvoicing/Form1.cs#L101

csharp
editor.AutoHeight = false;
editor.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
editor.MinValue = minValue;

winforms-spreadsheet-assign-custom-in-place-editors/VB/Spreadsheet_CustomCellEditors/Form1.vb#L53

vb
repository.AutoHeight = False
repository.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder
repository.MinValue = 1

winforms-spreadsheet-use-custom-cell-editors/VB/DevAVInvoicing/Form1.vb#L92

vb
editor.AutoHeight = False
editor.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder
editor.MinValue = minValue

See Also

LookAndFeel

RepositoryItem Class

RepositoryItem Members

DevExpress.XtraEditors.Repository Namespace