Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfFreeTextAnnotationFacade.FontColor Property

Specifies the annotation’s font color.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v24.2.Core.dll

NuGet Package: DevExpress.Pdf.Core

#Declaration

public PdfRGBColor FontColor { get; set; }

#Property Value

Type Description
PdfRGBColor

The font color.

#Remarks

The following example configures the annotation’s text settings:

Customize text in the free text annotation

using DevExpress.Pdf;
// ...
using (PdfDocumentProcessor processor = new PdfDocumentProcessor()) {
    processor.CreateEmptyDocument("Document.pdf");
    processor.AddNewPage(PdfPaperSize.Letter);
    var freeText = processor.DocumentFacade.Pages[0].AddFreeTextAnnotation(new PdfRectangle(80, 80, 400, 120), "Free Text Annotation");
    freeText.FontName = "Times New Roman";
    freeText.FontColor = new PdfRGBColor(0.059, 0.6, 0.224);
    freeText.FontItalic = true;
    freeText.FontBold = true;
    freeText.FontSize = 15;
    freeText.TextJustification = PdfTextJustification.Centered;
    processor.SaveDocument("Document.pdf");
}
See Also