PDFium Delphi Component Docs

เมธอด SetAnnotationFontColor

Component: TPdf  ·  Unit: PDFium
กำหนดสีข้อความของคำอธิบายประกอบ widget ของฟิลด์ฟอร์มใหม่

Syntax

function SetAnnotationFontColor(AnnotIndex: Integer; Color: TColor): Boolean;

AnnotIndexInteger. ดัชนีเริ่มต้นที่ศูนย์ของคำอธิบายประกอบ widget บนหน้าปัจจุบัน
ColorTColor. สีฟอนต์ใหม่
ResultBoolean. True เมื่อสีถูกเขียนสำเร็จ False เมื่อคำอธิบายประกอบหรือ build ของ PDFium ไม่รองรับ

Description

กำหนดสีที่ widget ใช้วาดข้อความ โดยไม่ต้องแก้ไข dictionary ของคำอธิบายประกอบโดยตรง

สิ่งที่ตัวดูแสดงผลคือ appearance stream ที่เก็บไว้ จึงควรเรียก RefreshAppearance หรือ GenerateFormAppearances หลังจากนี้เพื่อให้สีใหม่ปรากฏ

การคืนค่า False จะไม่เปลี่ยนแปลงคำอธิบายประกอบใด ๆ

See Also

GetAnnotationFontColor, RefreshAppearance, GenerateFormAppearances, FormField