|
THPDFPage.AddTextAnnotation
|
ด้านบน ก่อนหน้า ถัดไป |
|
เพิ่มคำอธิบายประกอบ Text ใหม่บนหน้าปัจจุบัน
ประเภท THPDFTextAnnotationType = ( taComment, taKey, taNote, taHelp, taNewParagraph, taParagraph, taInsert );
Delphi syntax: procedure AddTextAnnotation ( Contents: AnsiString; Rectangle: TRect; Open: boolean; Name: THPDFTextAnnotationType; Color: TColor = clRed );
C++ syntax: void __fastcall AddTextAnnotation ( AnsiString Contents, Windows::TRect &Rectangle, bool Open, THPDFTextAnnotationType Name, Graphics::TColor Color );
คำอธิบาย ใช้ AddTextAnnotation เพื่อเพิ่มคำอธิบายประกอบ Text ใหม่ตามข้อความที่ระบุ (Contents) พื้นที่สี่เหลี่ยมผืนผ้า (Rectangle) ไอคอนแสดงผล (Name) และสีบนหน้าปัจจุบัน ตั้งค่า Open เป็น true เพื่อเปิดคำอธิบายประกอบ หรือตั้งค่า Open เป็น false เพื่อปิดคำอธิบายประกอบ
Value Meaning taComment Comment taKey Key taNote Note taHelp Help taNewParagraph NewParagraph taParagraph Paragraph taInsert Insert
|