Skip to main content
Bar

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

BarItem.Alignment Property

Gets or sets the horizontal alignment of the bar item’s link(s).

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

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

#Property Value

Type Default Description
DevExpress.XtraBars.BarItemLinkAlignment Default

The horizontal alignment of the bar item’s link(s).

#Remarks

#Ribbon Control

In the Ribbon Control, the Alignment property specifies the alignment of the bar item’s links displayed in the tab header area and Ribbon Form’s caption, and buttons displayed in messages:

Alignment of Bar Items - WinForms Ribbon Control, DevExpress

barButtonItemNetwork.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Right;

#Bars / Toolbars

The Alignment property is in effect only for item links displayed within Bars with the UseWholeRow option enabled. The image below shows item links that are aligned to the bar’s left and right edges:

BarItem_Alignment

See Also