windowsforms-devexpress-dot-xtrabars-dot-baritem-00d0fbf2.md
Gets or sets the horizontal alignment of the bar item’s link(s).
Namespace : DevExpress.XtraBars
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(BarItemLinkAlignment.Default)]
[DXCategory("Appearance")]
public virtual BarItemLinkAlignment Alignment { get; set; }
<DefaultValue(BarItemLinkAlignment.Default)>
<DXCategory("Appearance")>
Public Overridable Property Alignment As BarItemLinkAlignment
| Type | Default | Description |
|---|---|---|
| DevExpress.XtraBars.BarItemLinkAlignment | Default |
The horizontal alignment of the bar item’s link(s).
|
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:
barButtonItemNetwork.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Right;
barButtonItemNetwork.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Right
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:
See Also