SetAnnotationHighlightMode 會在 link annotation 上寫入 /H。支援的值為 ahmNone、ahmInvert、ahmOutline 與 ahmPush,分別對應 PDF names /N、/I、/O 與 /P

THPDFPage

 

上一頁  方法  LastAnnotation

Sets the PDF link annotation /H highlight mode.

 

Delphi 語法:

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

 

C++ 語法:

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

 

說明

SetAnnotationHighlightMode 會將 /H 寫入 link annotation。支援的 values 為 ahmNone、ahmInvert、ahmOutline 與 ahmPush,分別對應 PDF names /N、/I、/O 與 /P/H on a link annotation. The supported values are ahmNone, ahmInvert, ahmOutline, and ahmPush, corresponding to PDF names /N, /I, /O, and /P.

 

請使用 AddURILink 傳回的 dictionary,或在 AddGoToLink、AddGoToRLink 或 AddLaunchLink call 後使用 LastAnnotationAddURILink or use LastAnnotation after an AddGoToLink, AddGoToRLink, or AddLaunchLink call.

 

Example

Page.SetAnnotationHighlightMode(Page.LastAnnotation, ahmPush);

 

請參閱: LastAnnotation, SetAnnotationFlags, SetAnnotationBorderStyle