aspnet-js-aspxclienthtmleditorinsertlinkcommandarguments.md
Contains settings related to the ASPxClientCommandConsts.INSERTLINK_COMMAND command parameter.
declare class ASPxClientHtmlEditorInsertLinkCommandArguments extends ASPxClientHtmlEditorCommandArguments
When the ASPxClientHtmlEditor.ExecuteCommand method is used to execute the ASPxClientCommandConsts.INSERTLINK_COMMAND command manually, it requires an additional parameter of the ASPxClientHtmlEditorInsertLinkCommandArguments type.
To create an instance of this class, use the ASPxClientHtmlEditorInsertLinkCommandArguments constructor. Specify all required properties of the newly created object and pass the resulting parameter to the ASPxClientHtmlEditor.ExecuteCommand method.
// Inserting a new hyperlink to the current cursor position
var args = new ASPxClientHtmlEditorInsertLinkCommandArguments(htmlEditor);
args.target = "_blank";
args.text = "Visit our website";
args.title = "DevExpress";
args.url = "https://www.devexpress.com";
htmlEditor.ExecuteCommand(ASPxClientCommandConsts.INSERTLINK_COMMAND, args);
ASPxClientHtmlEditorCommandArguments ASPxClientHtmlEditorInsertLinkCommandArguments
See Also