PDFium Delphi Component Docs

SetAnnotationFontColor method

Component: TPdf  ·  Unit: PDFium
Ghi đè màu chữ của một chú thích widget trường biểu mẫu

Syntax

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

AnnotIndexInteger. Chỉ số dựa trên 0 của chú thích widget trên trang hiện tại
ColorTColor. Màu chữ mới
ResultBoolean. True khi màu đã được ghi, False khi chú thích hoặc bản dựng PDFium không hỗ trợ

Description

Đặt màu mà một widget dùng để vẽ chữ của nó, mà không chỉnh sửa trực tiếp từ điển chú thích

Luồng hình thức được lưu chính là thứ trình xem vẽ lên, vì vậy hãy gọi RefreshAppearance hoặc GenerateFormAppearances sau đó để màu mới hiển thị

Khi trả về False, chú thích được giữ nguyên không thay đổi

See Also

GetAnnotationFontColor, RefreshAppearance, GenerateFormAppearances, FormField