A newer version of this page is available. Switch to the current version.

ASPxClientHtmlEditorInsertLinkCommandArguments Class

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 = "http://www.devexpress.com";
htmlEditor.ExecuteCommand(ASPxClientCommandConsts.INSERTLINK_COMMAND, args);


See Also