|
THPDFPage.AddTextAnnotation
|
顶部 上一页 下一页 |
|
在当前页添加新的文本批注。
type THPDFTextAnnotationType = ( taComment, taKey, taNote, taHelp, taNewParagraph, taParagraph, taInsert );
Delphi 语法: procedure AddTextAnnotation ( Contents: AnsiString; Rectangle: TRect; Open: boolean; Name: THPDFTextAnnotationType; Color: TColor = clRed ); procedure AddTextAnnotation ( Contents: AnsiString; Rectangle: TRect; Open: boolean; Name: THPDFTextAnnotationType; Title: AnsiString; Color: TColor = clRed );
C++ 语法: void __fastcall AddTextAnnotation ( AnsiString Contents, Windows::TRect &Rectangle, bool Open, THPDFTextAnnotationType Name, Graphics::TColor Color ); void __fastcall AddTextAnnotation ( AnsiString Contents, Windows::TRect &Rectangle, bool Open, THPDFTextAnnotationType Name, AnsiString Title, Graphics::TColor Color );
说明 使用 AddTextAnnotation 在当前页面上添加 新的 Text annotation ,并指定文本消息( Contents)、矩形区域(Rectangle)、图标视图(Name)和颜色 。Open 设为 true 打开注释,设为 false 关闭注释。带 Title 的重载写出 PDF 文本注释的
值 含义 taComment Comment taKey Key taNote Note taHelp Help taNewParagraph NewParagraph taParagraph Paragraph taInsert Insert
|