aspnetcore-js-devexpress-dot-richedit-dc9cee24.md
Contains a command’s state.
export class CommandState
Returns whether the command is enabled in the RichEdit control.
readonly enabled: boolean
| Type | Description |
|---|---|
| boolean |
true if the command is enabled; otherwise, false.
|
var fontColorEnabled = richEdit.getCommandState(DevExpress.RichEdit.HomeTabCommandId.ChangeFontForeColor).enabled;
Returns the command’s value.
readonly value?: any
| Type | Description |
|---|---|
| any |
The command’s value. undefined if the command does not have a value or has multiple values in the selection.
|
var currentFontColor = richEdit.getCommandState(DevExpress.RichEdit.HomeTabCommandId.ChangeFontForeColor).value;
Returns whether the command is visible.
readonly visible: boolean
| Type | Description |
|---|---|
| boolean |
true if the command is visible; otherwise, false.
|
var copyCommandVisible = richEdit.getCommandState(DevExpress.RichEdit.ContextMenuCommandId.Copy).visible;