Back to Devexpress

CheckButton Class

windowsforms-devexpress-dot-xtraeditors-22df2529.md

latest3.2 KB
Original Source

CheckButton Class

A button that supports two states - elevated and depressed. It is possible to prevent the button from receiving focus on click. Multiple buttons can be combined into a radio group, in which only one button is checked at a time.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXLicenseWinFormsEditors]
public class CheckButton :
    SimpleButton
vb
<DXLicenseWinFormsEditors>
Public Class CheckButton
    Inherits SimpleButton

The following members return CheckButton objects:

Remarks

On clicking the CheckButton control, the button is pressed and remains in this state until the button is clicked again.

The button’s check state is specified by the CheckButton.Checked property. To respond to changes in the button’s state, handle the CheckButton.CheckedChanged event.

Multiple CheckButton controls can be combined into a logical group of mutually exclusive buttons. In this group, only one button can be in the pressed state at one time. Clicking another button unchecks the currently checked button, and checks the clicked button. To combine buttons into a group, use their CheckButton.GroupIndex properties.

To prevent the button from receiving focus on click, use the inherited SimpleButton.AllowFocus property.

Implements

IXtraResizableControl

Inheritance

Show 11 items

Object MarshalByRefObject Component Control DevExpress.XtraEditors.XtraControl ControlBase BaseControl BaseStyleControl BaseButton SimpleButton CheckButton

See Also

CheckButton Members

CheckEdit

CheckedListBoxControl

RadioGroup

DevExpress.XtraEditors Namespace