ASPxClientCommandConsts.CHANGEIMAGE_COMMAND Property
In This Article
Identifies a command that changes the selected image.
#Declaration
TypeScript
static CHANGEIMAGE_COMMAND: string
#Property Value
Type | Description |
---|---|
string | Value: “changeimage” |
#Remarks
The CHANGEIMAGE_COMMAND property can be used in the followng ways.
- In the ASPxClientHtmlEditor.CommandExecuted event — to determine the action performed by an end-user. If the ASPxClientHtmlEditorCommandEventArgs.commandName event parameter returns the CHANGEIMAGE_COMMAND property value, this means that an end-user has clicked the OK button within the Change Image dialog.
In the ASPxClientHtmlEditor.ExecuteCommand method — to execute the command manually.
In this case, the method requires an additional parameter, which is an object of the ASPxClientHtmlEditorChangeImageCommandArguments type.
// Changing the selected image border settings var image = htmlEditor.GetSelection().GetSelectedElement(); var args = new ASPxClientHtmlEditorChangeImageCommandArguments(htmlEditor, image); args.styleSettings.borderColor = "red"; args.styleSettings.borderStyle = "solid"; args.styleSettings.dorderWidth = "8px"; htmlEditor.ExecuteCommand(ASPxClientCommandConsts.CHANGEIMAGE_COMMAND, args);
Note
This command is available only in the Design View.
See Also