aspnetcore-js-devexpress-dot-richedit-ab5af5cc.md
A collection of the Hyperlink objects.
export class HyperlinkCollection extends Collection<Hyperlink>
Collection<T> HyperlinkCollection
Creates a new Hyperlink object with the specified settings and adds it to the collection.
create(
position: number | IInterval,
hyperlinkInfo: HyperlinkInfo
): Hyperlink
| Name | Type | Description |
|---|---|---|
| position | number | IInterval |
The hyperlink position or interval.
| | hyperlinkInfo | HyperlinkInfo |
An object that contains hyperlink settings.
|
| Type | Description |
|---|---|
| Hyperlink |
The newly created hyperlink.
|
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();
Returns a list of hyperlinks that traverse the specified position or interval.
find(
position: number | IInterval
): Hyperlink[]
| Name | Type | Description |
|---|---|---|
| position | number | IInterval |
A document position or interval.
|
| Type | Description |
|---|---|
| Hyperlink[] |
A list of hyperlinks.
|