TRVRTFReaderProperties.BasePathLinks

<< Click to display table of contents >>

TRVRTFReaderProperties.BasePathLinks

Specifies whether to add base path (path to RTF/DocX file) to hyperlink targets.

property BasePathLinks: Boolean;

(introduced in version 10)

Set to False if you do not want to add the document path to relative  hyperlinks on RTF/DocX loading.

For example, when loading "c:\Docs\MyFile.rtf" containing link to "MyFile2.rtf":

if this property is False, TCustomRichView.OnReadHyperlink event occurs with Target='MyFile2.rtf' (or, if the event is not assigned, this value is stored in them item tag);

if this property is True, this event occurs with Target='c:\Docs\MyFile2.rtf' (or, if the event is not assigned, this value is stored in them item tag).

See also:

TRichView.HTMLReadProperties.BasePathLinks

rvmdloBasePathLinks option in TRichView.MarkdownProperties.LoadOptions

Default value:

True