The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientHtmlEditorInsertLinkCommandArguments Class

Contains settings related to the ASPxClientCommandConsts.INSERTLINK_COMMAND command parameter.

Declaration

declare class ASPxClientHtmlEditorInsertLinkCommandArguments extends ASPxClientHtmlEditorCommandArguments

Remarks

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);

Inheritance

ASPxClientHtmlEditorCommandArguments
ASPxClientHtmlEditorInsertLinkCommandArguments
See Also