Back to Devexpress

ICommandUIState.EditValue Property

corelibraries-devexpress-dot-utils-dot-commands-dot-icommanduistate.md

latest2.8 KB
Original Source

ICommandUIState.EditValue Property

Gets or sets the value used by a command.

Namespace : DevExpress.Utils.Commands

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
object EditValue { get; set; }
vb
Property EditValue As Object

Property Value

TypeDescription
Object

An object representing the value used by a command.

|

Remarks

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

csharp
DevExpress.Utils.Commands.ICommandUIState state = changeFontColorCommand.CreateDefaultCommandUIState();
state.EditValue = Color.Yellow;
changeFontColorCommand.ForceExecute(state);

winforms-richeditcontrol-common-api/VB/RichEditAPISample/CodeExamples/RichEditControlActions.vb#L536

vb
Dim state As DevExpress.Utils.Commands.ICommandUIState = changeFontColorCommand.CreateDefaultCommandUIState()
state.EditValue = System.Drawing.Color.Yellow
changeFontColorCommand.ForceExecute(state)

See Also

ICommandUIState Interface

ICommandUIState Members

DevExpress.Utils.Commands Namespace