# RelayValueCommand<TValue> 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 RelayValueCommand<TValue> : RelayValueCommand<object, TValue>
```

A [IValueCommand<T>](https://eto.picoe.ca/api/type/eto.forms.ivaluecommand-1.md) class that uses delegates for getting and setting the value of the command

**Remarks:** This can be used to delegate the getting/setting of the value to separate methods. Call [RelayValueCommand<TParameter, TValue>.UpdateValue()](https://eto.picoe.ca/api/type/eto.forms.relayvaluecommand-2/updatevalue.md) to signal that the value has changed.

**Type parameters:**

- `TValue`

## Constructors

- [RelayValueCommand<TValue>](https://eto.picoe.ca/api/type/eto.forms.relayvaluecommand-1/ctor.md): Initializes a new instance of the `RelayValueCommand` class.

## Inherited Members

- From [RelayValueCommand<TParameter, TValue>](https://eto.picoe.ca/api/type/eto.forms.relayvaluecommand-2.md): [ValueChanged](https://eto.picoe.ca/api/type/eto.forms.relayvaluecommand-2/valuechanged.md), [GetValue](https://eto.picoe.ca/api/type/eto.forms.relayvaluecommand-2/getvalue.md), [OnValueChanged](https://eto.picoe.ca/api/type/eto.forms.relayvaluecommand-2/onvaluechanged.md), [SetValue](https://eto.picoe.ca/api/type/eto.forms.relayvaluecommand-2/setvalue.md), [UpdateValue](https://eto.picoe.ca/api/type/eto.forms.relayvaluecommand-2/updatevalue.md)
- From [RelayCommand<T>](https://eto.picoe.ca/api/type/eto.forms.relaycommand-1.md): [CanExecuteChanged](https://eto.picoe.ca/api/type/eto.forms.relaycommand-1/canexecutechanged.md), [CanExecute](https://eto.picoe.ca/api/type/eto.forms.relaycommand-1/canexecute.md), [Execute](https://eto.picoe.ca/api/type/eto.forms.relaycommand-1/execute.md), [OnCanExecuteChanged](https://eto.picoe.ca/api/type/eto.forms.relaycommand-1/oncanexecutechanged.md), [UpdateCanExecute](https://eto.picoe.ca/api/type/eto.forms.relaycommand-1/updatecanexecute.md)

## See Also

- [ValueCommand<T>](https://eto.picoe.ca/api/type/eto.forms.valuecommand-1.md)
