# CheckCommand class

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public class CheckCommand : Command, IValueCommand<bool>
```

Command for a menu/tool item that can be checked on or off.

**Derived types:** [RadioCommand](https://eto.picoe.ca/api/type/eto.forms.radiocommand.md)

## Constructors

- [CheckCommand](https://eto.picoe.ca/api/type/eto.forms.checkcommand/ctor.md): (2 overloads) Initializes a new instance of the [CheckCommand](https://eto.picoe.ca/api/type/eto.forms.checkcommand.md) class.

## Properties

- [Checked](https://eto.picoe.ca/api/type/eto.forms.checkcommand/checked.md): Gets or sets a value indicating whether this command is checked.

## Methods

- [CreateMenuItem](https://eto.picoe.ca/api/type/eto.forms.checkcommand/createmenuitem.md): Creates a new menu item attached to this command.
- [CreateToolItem](https://eto.picoe.ca/api/type/eto.forms.checkcommand/createtoolitem.md): Creates a new tool item attached to this command.
- [IValueCommand<bool>.GetValue](https://eto.picoe.ca/api/type/eto.forms.checkcommand/eto-forms-ivaluecommand-system-boolean-getvalue.md)
- [IValueCommand<bool>.SetValue](https://eto.picoe.ca/api/type/eto.forms.checkcommand/eto-forms-ivaluecommand-system-boolean-setvalue.md)
- [OnCheckedChanged](https://eto.picoe.ca/api/type/eto.forms.checkcommand/oncheckedchanged.md): Raises the [CheckCommand.CheckedChanged](https://eto.picoe.ca/api/type/eto.forms.checkcommand/checkedchanged.md) event.

## Events

- [CheckedChanged](https://eto.picoe.ca/api/type/eto.forms.checkcommand/checkedchanged.md): Occurs when the [CheckCommand.Checked](https://eto.picoe.ca/api/type/eto.forms.checkcommand/checked.md) value has changed.
- [IValueCommand<bool>.ValueChanged](https://eto.picoe.ca/api/type/eto.forms.checkcommand/eto-forms-ivaluecommand-system-boolean-valuechanged.md)

## Inherited Members

- From [Command](https://eto.picoe.ca/api/type/eto.forms.command.md): [Bindings](https://eto.picoe.ca/api/type/eto.forms.command/bindings.md), [CommandParameter](https://eto.picoe.ca/api/type/eto.forms.command/commandparameter.md), [DataContext](https://eto.picoe.ca/api/type/eto.forms.command/datacontext.md), [DelegatedCommand](https://eto.picoe.ca/api/type/eto.forms.command/delegatedcommand.md), [Enabled](https://eto.picoe.ca/api/type/eto.forms.command/enabled.md), [ID](https://eto.picoe.ca/api/type/eto.forms.command/id.md), [Image](https://eto.picoe.ca/api/type/eto.forms.command/image.md), [IsDataContextChanging](https://eto.picoe.ca/api/type/eto.forms.command/isdatacontextchanging.md), [MenuText](https://eto.picoe.ca/api/type/eto.forms.command/menutext.md), [Parent](https://eto.picoe.ca/api/type/eto.forms.command/parent.md), [Properties](https://eto.picoe.ca/api/type/eto.forms.command/properties.md), [Shortcut](https://eto.picoe.ca/api/type/eto.forms.command/shortcut.md), [Tag](https://eto.picoe.ca/api/type/eto.forms.command/tag.md), [ToolBarText](https://eto.picoe.ca/api/type/eto.forms.command/toolbartext.md), [ToolTip](https://eto.picoe.ca/api/type/eto.forms.command/tooltip.md), [DataContextChanged](https://eto.picoe.ca/api/type/eto.forms.command/datacontextchanged.md), [EnabledChanged](https://eto.picoe.ca/api/type/eto.forms.command/enabledchanged.md), [Executed](https://eto.picoe.ca/api/type/eto.forms.command/executed.md), [Execute](https://eto.picoe.ca/api/type/eto.forms.command/execute.md), [OnDataContextChanged](https://eto.picoe.ca/api/type/eto.forms.command/ondatacontextchanged.md), [OnEnabledChanged](https://eto.picoe.ca/api/type/eto.forms.command/onenabledchanged.md), [OnExecuted](https://eto.picoe.ca/api/type/eto.forms.command/onexecuted.md)
