constructor(htmlEditor, selectedElement) Constructor
In This Article
Initializes a new instance of the ASPxClientHtmlEditorChangeImageCommandArguments class.
#Declaration
TypeScript
constructor(
htmlEditor: ASPxClientHtmlEditor,
selectedElement: any
)
#Parameters
Name | Type | Description |
---|---|---|
html |
ASPx |
The html editor in which the target element is located. |
selected |
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