Skip to main content

CheckButton(Boolean) Constructor

Initializes a new instance of the CheckButton class with the specified check state.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v25.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public CheckButton(
    bool check
)

Parameters

Name Type Description
check Boolean

true to create the button in the checked state; false to create the button in the unchecked state. This value is assigned to the CheckButton.Checked property.

Remarks

The following code snippet creates a CheckButton in the checked state:

using DevExpress.XtraEditors;

CheckButton checkButton = new CheckButton(true);
checkButton.Text = "Enable Feature";
this.Controls.Add(checkButton);
See Also