PDFium Delphi Component Docs

เมธอด GetAnnotationFontColor

Component: TPdf  ·  Unit: PDFium
อ่านสีข้อความของ widget annotation ของฟิลด์ฟอร์ม

Syntax

function GetAnnotationFontColor(AnnotIndex: Integer; out Color: TColor): Boolean;

AnnotIndexInteger ดัชนีแบบนับจากศูนย์ของ widget annotation ในหน้าปัจจุบัน
ColorTColor รับสีของฟอนต์เมื่อการเรียกสำเร็จ
ResultBoolean เป็น True เมื่ออ่านสีได้ เป็น False เมื่อ annotation ไม่มีสี เลเยอร์ฟอร์มไม่ได้ใช้งาน หรือ build ของ PDFium ไม่ export entry point นี้

Description

อ่านสีที่ widget ใช้วาดข้อความของตัวเอง โดยไม่ต้องไล่ผ่าน dictionary ของ annotation และสตริง /DA ของมัน

พารามิเตอร์ out จะไม่ถูกแตะต้องเมื่อฟังก์ชันคืนค่า False ผู้เรียกจึงต้องตรวจสอบผลลัพธ์แทนที่จะตรวจสอบค่า

widget ของฟิลด์ฟอร์มคือ annotation ที่เมธอดนี้ใช้ได้ subtype อื่นไม่มีสีฟอนต์ให้รายงาน

See Also

SetAnnotationFontColor, FormField, FormFieldInfo, RefreshAppearance