# ValueCommand<T> 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 ValueCommand<T> : Command, IValueCommand<T>
```

Command that provides a specific value.

**Type parameters:**

- `T`

## Properties

- [Value](https://eto.picoe.ca/api/type/eto.forms.valuecommand-1/value.md): Gets or sets the value for the command.

## Methods

- [IValueCommand<T>.GetValue](https://eto.picoe.ca/api/type/eto.forms.valuecommand-1/eto-forms-ivaluecommand-t-getvalue.md)
- [IValueCommand<T>.SetValue](https://eto.picoe.ca/api/type/eto.forms.valuecommand-1/eto-forms-ivaluecommand-t-setvalue.md)
- [OnValueChanged](https://eto.picoe.ca/api/type/eto.forms.valuecommand-1/onvaluechanged.md): Raises the [ValueCommand<T>.ValueChanged](https://eto.picoe.ca/api/type/eto.forms.valuecommand-1/valuechanged.md) event.

## Events

- [ValueChanged](https://eto.picoe.ca/api/type/eto.forms.valuecommand-1/valuechanged.md): Event for when the [ValueCommand<T>.Value](https://eto.picoe.ca/api/type/eto.forms.valuecommand-1/value.md) is changed.

## 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), [CreateMenuItem](https://eto.picoe.ca/api/type/eto.forms.command/createmenuitem.md), [CreateToolItem](https://eto.picoe.ca/api/type/eto.forms.command/createtoolitem.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)
