Skip to main content
All docs
V23.2

PdfFreeTextAnnotationFacade.FontItalic Property

Specifies whether to format the annotation’s text as italic.

Namespace: DevExpress.Pdf

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

NuGet Package: DevExpress.Pdf.Core

Declaration

public bool FontItalic { get; set; }

Property Value

Type Description
Boolean

true to make text italic; otherwise, false.

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