Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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