BarItemLink.UserAlignment Property
Gets or sets the horizontal alignment of the current BarItemLink.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.2.dll
Declaration
[Browsable(false)]
[XtraSerializableProperty]
public BarItemLinkAlignment UserAlignment { get; set; }
Property Value
Type | Description |
---|---|
DevExpress.XtraBars.BarItemLinkAlignment | A DevExpress.XtraBars.BarItemLinkAlignment enumerator value that specifies the horizontal alignment of the current BarItemLink. |
Remarks
The link’s alignment can be specified by the corresponding item’s BarItem.Alignment property or by the link’s UserAlignment property. The latter gives you the ability to specify the alignment for a single link. This allows you to use multiple links to the same item but with different alignment settings. The link’s BarLinkUserDefines.Alignment option determines which of these properties specify the link’s alignment. If this option is active, the link’s alignment is specified by its UserAlignment property. Otherwise, it is specified by the corresponding item’s BarItem.Alignment property.
Options that specify which link settings are determined by a user can be accessed via the BarItemLink.UserDefine property. Note that individual options can be enabled/disabled only via code. To disable all user defined options, call the BarItemLink.Reset method.