Working with doclinks in LotusScript® classes

To access a doclink in a rich text item, use the NotesRichTextNavigator methods in conjunction with the type RTELEM_TYPE_DOCLINK. To create a doclink in a rich text item, use AppendDocLink in NotesRichTextItem. After creating a doclink, you must navigate in the rich text item to access it.

Once you access a doclink, the NotesRichTextDocLink class lets you remove the doclink and use the following properties:

Property

Data type

Description

DbReplicaID

String

(Read-write) Replica ID of the target database.

DisplayComment

String

(Read-write) Comment text of the doclink.

DocUNID

String

(Read-write) Universal ID of the target document.

HotSpotText property

String

(Read-write) For a hotspot doclink, the text representing the doclink.

HotSpotTextStyle property

NotesRichTextStyle

(Read-only) For a hotspot doclink, the style of the text representing the doclink. To set the style, use the SetHotSpotTextStyle method.

ServerHint

String

(Read-write) Name of the server containing the target database.

ViewUNID

String

(Read-write) Universal ID of the target view.