TrvActionInsertHyperlink.OnGetHyperlinkTargetFromItem

<< Click to display table of contents >>

TrvActionInsertHyperlink.OnGetHyperlinkTargetFromItem

Occurs when the action needs to get a hyperlink target from item of unknown type.

type

  TRVGetHyperlinkTargetFromItem = procedure (Sender: TObject;

    Editor: TCustomRichViewEdit; RVData: TCustomRVData; ItemNo: Integer;

    var Target: TRVUnicodeString) of object;

 

property OnGetHyperlinkTargetFromItem: TRVGetHyperlinkTargetFromItem;

For text and pictures, the action gets targets automatically. For items of other types, this event occurs.

If you return empty Target, the action will treat this item as non-hypertext.

The item is defined by Editor and ItemNo (it is the ItemNo-th item in Editor, where Editor can be a main editor or cell inplace editor). RVData is Editor.RVData.