Skip to main content

AppMenuFileLabel.Checked Property

Gets or sets the label’s check state.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public bool Checked { get; set; }

Property Value

Type Default Description
Boolean false

true if the label is checked; otherwise, false.

Remarks

A label can have two states: checked and unchecked, indicated by the check button. This button is visible if the AppMenuFileLabel.ShowCheckButton property is enabled. An end-user can click the button to toggle the label’s check state. When the label is unchecked, the check button displays the image specified by the AppMenuFileLabel.Image property. When the label is checked, the AppMenuFileLabel.SelectedImage is displayed within the button.

Use the Checked property to specify the check state in code. When the label’s check state is changed, the AppMenuFileLabel.CheckedChanged event fires.

See Also