ASPxClientHtmlEditorInsertImageCommandArguments Class
Contains settings related to the ASPxClientCommandConsts.INSERTIMAGE_COMMAND command parameter.
Declaration
declare class ASPxClientHtmlEditorInsertImageCommandArguments extends ASPxClientHtmlEditorCommandArguments
Remarks
When the ASPxClientHtmlEditor.ExecuteCommand method is used to execute the ASPxClientCommandConsts.INSERTIMAGE_COMMAND command manually, it requires an additional parameter of the ASPxClientHtmlEditorInsertImageCommandArguments type.
To create an instance of this class, use the ASPxClientHtmlEditorInsertImageCommandArguments constructor. Specify all required properties of the newly created object and pass the resulting parameter to the ASPxClientHtmlEditor.ExecuteCommand method.
// Inserting a new image at the current cursor position
var args = new ASPxClientHtmlEditorInsertImageCommandArguments(htmlEditor, null);
args.align = "center";
args.alt = "Some alternate text";
args.src = "/Content/SampleImage.png";
args.styleSettings.width = "400px";
args.useFloat = true;
htmlEditor.ExecuteCommand(ASPxClientCommandConsts.INSERTIMAGE_COMMAND, args);
Inheritance
ASPxClientHtmlEditorCommandArguments
ASPxClientHtmlEditorInsertImageCommandArguments
See Also