HyperlinkCollection.Create(DocumentRange) Method
Creates a hyperlink for the specified document range and adds it to the collection.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
range | DocumentRange | A range associated with the hyperlink. |
Returns
Type | Description |
---|---|
Hyperlink | The created hyperlink. |
Remarks
The Create method creates a hyperlink with the specified Hyperlink.Range and other characteristics set to null. Use the Hyperlink class properties to adjust the newly created hyperlink.
You can use the Create method overload to convert a document range to a hyperlink. Refer to the following article for a code sample:
To remove a hyperlink, use the HyperlinkCollection.Remove method.
Tip
Use the Shape.AddHyperlink method to associate a hyperlink with a Shape object. Note that this hyperlink is not added to the HyperlinkCollection.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Create(DocumentRange) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.