BarItemLink.UserDefine Property

Gets or sets link options that specify which link settings are determined by a user.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll


public BarLinkUserDefines UserDefine { get; set; }
Public Property UserDefine As BarLinkUserDefines

Property Value

Type Description

A bitwise combination of BarLinkUserDefines enumeration members that represent link options.


This property controls whose link settings can be determined by a user. It specifies whether users can apply different captions, paint styles, widths and glyphs to individual links that correspond to the same item. Note that single options can be enabled/disabled only in code, as shown in the example below. To disable all user defined options, call the BarItemLink.Reset method.


The sample code below demonstrates how to check whether the specified link option (BarLinkUserDefines.Caption in our case) is active. If the option is currently disabled, it is activated.

using DevExpress.XtraBars;

// ...
if ((item1.Links[0].UserDefine & BarLinkUserDefines.Caption) == 0)
   item1.Links[0].UserDefine |= BarLinkUserDefines.Caption;
See Also