Skip to main content
Bar

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

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