PDFium Delphi Component Docs

SetAnnotationFontColor metode

Komponen: TPdf  ·  Unit: PDFium
Menimpa warna teks dari anotasi widget bidang formulir

Syntax

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

AnnotIndexInteger. Zero-based index of the widget annotation on the current page.
ColorTColor. New font colour.
ResultBoolean. True when the colour was written, False when the annotation or the PDFium build does not support it.

Description

Menetapkan warna yang dipakai widget untuk menggambar teksnya, tanpa mengedit kamus anotasi langsung

Appearance stream yang tersimpan adalah yang digambar penampil, jadi panggil RefreshAppearance atau GenerateFormAppearances setelahnya agar warna baru terlihat

Mengembalikan False membiarkan anotasi tidak berubah

See Also

GetAnnotationFontColor, RefreshAppearance, GenerateFormAppearances, FormField