windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-navelement-a9a3546d.md
Gets or sets the alignment of the NavElement rendered as a button in the nav bar.
Namespace : DevExpress.XtraBars.Navigation
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(NavButtonAlignment.Default)]
[DXCategory("Appearance")]
public virtual NavButtonAlignment Alignment { get; set; }
<DefaultValue(NavButtonAlignment.Default)>
<DXCategory("Appearance")>
Public Overridable Property Alignment As NavButtonAlignment
| Type | Default | Description |
|---|---|---|
| DevExpress.XtraBars.Navigation.NavButtonAlignment | Default |
The DevExpress.XtraBars.Navigation.NavButtonAlignment enumeration value specifying the alignment of the NavElement rendered as a button in the nav bar.
|
Use the Alignment property to specify the alignment of the NavElement rendered as a button in the nav bar. The NavButtonAlignment enumeration provides the following values:
The actual button alignment is dependent on the alignment of the preceding buttons. Setting a button’s Alignment property to Right affects the alignment of the following nav bar buttons — all buttons that follow the right-aligned button will be aligned to the right as well, regardless their Alignment settings.
See Also