Back to Devexpress

AppMenuFileLabel.ShowCheckButton Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-appmenufilelabel-da6fd870.md

latest2.5 KB
Original Source

AppMenuFileLabel.ShowCheckButton Property

Gets or sets whether the label’s check button is visible.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Appearance")]
public bool ShowCheckButton { get; set; }
vb
<DefaultValue(True)>
<DXCategory("Appearance")>
Public Property ShowCheckButton As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if the check button is visible; otherwise, false.

|

Remarks

The check button allows an end-user to toggle the label’s check state. Use the AppMenuFileLabel.ImageOptionsCollection property to specify state images.

To get/set the check state in code, use the AppMenuFileLabel.Checked property.

By default, clicking the check button toggles the label’s check state and fires the AppMenuFileLabel.CheckedChanged event, as a result. You can prevent the check state from being automatically changed on clicking the button by handling the AppMenuFileLabel.LabelImageClick event, and setting the event’s Cancel parameter to true.

See Also

Checked

CheckedChanged

ImageOptionsCollection

LabelImageClick

AppMenuFileLabel Class

AppMenuFileLabel Members

DevExpress.XtraBars.Ribbon Namespace