BarItem.Alignment Property
Gets or sets the default alignment of bar item links corresponding to the current bar item, when they are displayed within a bar. This is a dependency property.
Namespace: DevExpress.Xpf.Bars
Assembly: DevExpress.Xpf.Core.v19.2.dll
Declaration
Property Value
Type | Description |
---|---|
BarItemAlignment | A BarItemAlignment value that specifies the default alignment of the current bar item’s links. |
Available values:
Name | Description |
---|---|
Default | A bar item’s default alignment. |
Near | A bar item link is aligned to the nearest edge of the parent bar. |
Far | A bar item link is aligned to the far edge of the parent bar. |
Remarks
Use the Alignment property to specify the default alignment of bar item links that correspond to the current bar item, when they are displayed within a bar. To override the alignment settings for individual links, use the BarItemLinkBase.Alignment property.
You can also specify the default alignment of all links displayed within a bar via the bar’s Bar.BarItemsAlignment property.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Alignment property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.