Skip to main content
A newer version of this page is available. .
Bar

BarItem.Alignment Property

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

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v18.2.dll

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

This property is in effect only for item links displayed within Bars. The Ribbon control has its own alignment settings that ignore the Alignment property.

See Also