Skip to main content
Bar

BarItem.Alignment Property

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

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v23.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

A DevExpress.XtraBars.BarItemLinkAlignment enumeration value that specifies the horizontal alignment of the item’s link(s).

Remarks

The image below shows item links that are aligned to the bar’s left and right edges.

BarItem_Alignment

Note

The Alignment property is in effect only for item links displayed within Bars (the bar’s UseWholeRow option should be enabled). In the Ribbon control, the property is in effect for items displayed in the tab header area.

See Also