aspnetcore-js-devexpress-dot-richedit-68f3bb85.md
Contains information about a hyperlink.
export class HyperlinkInfo
var text = "Visit our site";
var url = "https://www.devexpress.com/";
var tooltip = "DevExpress site";
richEdit.beginUpdate();
richEdit.history.beginTransaction();
var subDocument = richEdit.selection.activeSubDocument;
var position = richEdit.selection.active;
position = subDocument.insertParagraph(position).interval.end;
position = subDocument.hyperlinks.create(position, new DevExpress.RichEdit.HyperlinkInfo(text, url, "", tooltip)).interval.end;
subDocument.insertParagraph(position);
richEdit.endUpdate();
richEdit.history.endTransaction();
Initializes a new instance of the HyperlinkInfo class with specified settings.
constructor(
text: string,
url?: string,
bookmark?: string,
tooltip?: string
)
| Name | Type | Description |
|---|---|---|
| text | string |
The hyperlink text.
| | url | string |
The hyperlink URL.
| | bookmark | string |
The name of a bookmark to which the hyperlink navigate.
| | tooltip | string |
The hyperlink tooltip text.
|
The name of a bookmark to which the hyperlink navigate.
bookmark: string
| Type | Description |
|---|---|
| string |
A bookmark name.
|
If the bookmark property is specified, the url property is not in effect.
Specifies the hyperlink text.
text: string
| Type | Description |
|---|---|
| string |
The hyperlink text.
|
Specifies the hyperlink tooltip text.
tooltip: string
| Type | Description |
|---|---|
| string |
The tooltip text.
|
Specifies the hyperlink URL.
url: string
| Type | Description |
|---|---|
| string |
The hyperlink URL.
|
If the bookmark property is specified, the url property is not in effect.