Back to Devexpress

InsertHyperlinkCommand.execute(settings) Method

aspnet-js-inserthyperlinkcommand-dot-execute-x28-settings-x29.md

latest1.0 KB
Original Source

InsertHyperlinkCommand.execute(settings) Method

Executes the InsertHyperlinkCommand command with the specified parameter.

Declaration

ts
execute(
    settings: HyperlinkSettings
): boolean

Parameters

NameTypeDescription
settingsHyperlinkSettings

A HyperlinkSettings object specifying hyperlink settings.

|

Returns

TypeDescription
boolean

true if the command has been successfully executed; false if the command execution has failed.

|

Remarks

Usage example:

javascript
var hyperlinkSettings = {
    url: 'https://www.devexpress.com/',
    text: 'Link',
    tooltip: 'Click to redirect'
};

richEdit.commands.insertHyperlink.execute(hyperlinkSettings);

See Also

InsertHyperlinkCommand Class

InsertHyperlinkCommand Members