corelibraries-devexpress-dot-utils-dot-commands-dot-icommanduistate.md
Gets or sets the value used by a command.
Namespace : DevExpress.Utils.Commands
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
object EditValue { get; set; }
Property EditValue As Object
| Type | Description |
|---|---|
| Object |
An object representing the value used by a command.
|
The EditValue property enables you to specify a value required by a command.
See the ChangeFontColorCommand topic for an example of use.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EditValue property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-richeditcontrol-common-api/CS/RichEditAPISample/CodeExamples/RichEditControlActions.cs#L527
DevExpress.Utils.Commands.ICommandUIState state = changeFontColorCommand.CreateDefaultCommandUIState();
state.EditValue = Color.Yellow;
changeFontColorCommand.ForceExecute(state);
winforms-richeditcontrol-common-api/VB/RichEditAPISample/CodeExamples/RichEditControlActions.vb#L536
Dim state As DevExpress.Utils.Commands.ICommandUIState = changeFontColorCommand.CreateDefaultCommandUIState()
state.EditValue = System.Drawing.Color.Yellow
changeFontColorCommand.ForceExecute(state)
See Also