function SetAnnotationFontColor(AnnotIndex: Integer; Color: TColor): Boolean;
| AnnotIndex | Integer. Zero-based index of the widget annotation on the current page |
| Color | TColor. New font colour |
| Result | Boolean. True when the colour was written, False when the annotation or the PDFium build does not support it |
Sets the colour a widget draws its text in, without editing the annotation dictionary directly
The stored appearance stream is what a viewer paints, so call RefreshAppearance or GenerateFormAppearances afterwards for the new colour to show
Returning False leaves the annotation unchanged