THPDFPage.SetAnnotationHighlightMode

THPDFPage

 

Previous  Methods  LastAnnotation

Sets the PDF link annotation /H highlight mode.

 

Delphi syntax:

procedure SetAnnotationHighlightMode(Annot: THPDFDictionaryObject; Mode: THPDFAnnotationHighlightMode);

 

C++ syntax:

void __fastcall SetAnnotationHighlightMode(THPDFDictionaryObject *Annot, THPDFAnnotationHighlightMode Mode);

 

Description

SetAnnotationHighlightMode writes /H on a link annotation. The supported values are ahmNone, ahmInvert, ahmOutline, and ahmPush, corresponding to PDF names /N, /I, /O, and /P.

 

Use the dictionary returned by AddURILink or use LastAnnotation after an AddGoToLink, AddGoToRLink, or AddLaunchLink call.

 

Example

Page.SetAnnotationHighlightMode(Page.LastAnnotation, ahmPush);

 

See also: LastAnnotation, SetAnnotationFlags, SetAnnotationBorderStyle