constructor(htmlEditor, selectedElement) Constructor
Initializes a new instance of the ASPxClientHtmlEditorChangeImageCommandArguments class.
Declaration
constructor(
htmlEditor: ASPxClientHtmlEditor,
selectedElement: any
)
Parameters
Name | Type | Description |
---|---|---|
htmlEditor | ASPxClientHtmlEditor | The html editor in which the target element is located. |
selectedElement | any | The image that is about to be changed. |
Remarks
// 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);
See Also