Skip to main content

NavElement.Alignment Property

Gets or sets the alignment of the NavElement rendered as a button in the nav bar.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(NavButtonAlignment.Default)]
[DXCategory("Appearance")]
public virtual NavButtonAlignment Alignment { get; set; }

Property Value

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.

Remarks

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:

  • Default and Left – the button is aligned at the left margin of the nav bar
  • Right – the button is aligned at the right margin of the nav bar

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