.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

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.v21.1.Core.dll

Declaration

Hyperlink Create(
    DocumentRange range
)

Parameters

Name Type Description
range DocumentRange

A DocumentRange object specifying a range associated with the hyperlink.

Returns

Type Description
Hyperlink

A Hyperlink interface exposing the created hyperlink.

Remarks

The Create method creates a hyperlink with the specified Hyperlink.Range and other characteristics set to null. Use Hyperlink properties to adjust the newly created hyperlink, as required.

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.

See Also