The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientCommandConsts.CHANGEIMAGE_COMMAND Property

Identifies a command that changes the selected image.



Property Value

Type Description

Value: "changeimage"


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);

This command is available only in the Design View.

See Also