Back to Devexpress

NavElement.Alignment Property

windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-navelement-a9a3546d.md

latest2.2 KB
Original Source

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

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
DevExpress.XtraBars.Navigation.NavButtonAlignmentDefault

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

NavElement Class

NavElement Members

DevExpress.XtraBars.Navigation Namespace