Back to Devexpress

BarBaseButtonItem.ButtonStyle Property

windowsforms-devexpress-dot-xtrabars-dot-barbasebuttonitem-f4d88e2c.md

latest2.8 KB
Original Source

BarBaseButtonItem.ButtonStyle Property

Gets or sets the button item’s style which determines how it functions.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public virtual BarButtonStyle ButtonStyle { get; set; }
vb
<Browsable(False)>
Public Overridable Property ButtonStyle As BarButtonStyle

Property Value

TypeDescription
BarButtonStyle

A BarButtonStyle value that determines how this item functions.

|

Available values:

NameDescription
Default

Applies the Default style to the BarButtonItem component. The default style means that the link represents a regular push button.

| | DropDown |

Applies the DropDown style to the BarButtonItem component.

| | Check |

Applies the Check style to the BarButtonItem component.

| | CheckDropDown |

Combines Check and DropDown styles. The target bar button item supports checked/unchecked states and has an assigned drop-down control.

|

Remarks

This property does not implement any specific functionality in the BarBaseButtonItem class. It is overridden by the descendant classes.

For BarCheckItem objects this property always returns BarButtonStyle.Check and it cannot be changed.

For BarButtonItem objects and their descendants the BarButtonItem.ButtonStyle property can be set to any BarButtonStyle value. See this member’s description for more information.

See Also

DropDownControl

ButtonStyle

BarBaseButtonItem Class

BarBaseButtonItem Members

DevExpress.XtraBars Namespace