THPDFPage.AddTextAnnotation

THPDFPage

 

顶部  上一页  下一页

Adds new Text annotation on the current page.

 

type

     THPDFTextAnnotationType = ( taComment, taKey, taNote, taHelp, taNewParagraph, taParagraph, taInsert );

 

Delphi 语法:

procedure AddTextAnnotation ( Contents: AnsiString; Rectangle: TRect; Open: boolean; Name: THPDFTextAnnotationType; Color: TColor = clRed );

 

C++ 语法:

void __fastcall AddTextAnnotation ( AnsiString Contents, Windows::TRect &Rectangle, bool Open, THPDFTextAnnotationType Name, Graphics::TColor Color );

 

说明

使用 AddTextAnnotation,在当前页面上添加新的 Text annotation,并指定 text message(Contents)、rectangle area(Rectangle)、icon view(Name)和 color。将 Open 设为 true 可打开 annotation,设为 false 可关闭 annotation

 

Value                          Meaning


taComment                Comment

taKey                         Key

taNote                        Note

taHelp                        Help

taNewParagraph         NewParagraph

taParagraph               Paragraph

taInsert                      Insert

 

 

Text annotation preview