Skip to content

PDFStringAppearanceOptions

Namespace: O2S.Components.PDF4NET.Graphics

Defines various appearance options for displaying text on page graphics.

public class PDFStringAppearanceOptions

Inheritance ObjectPDFStringAppearanceOptions

Constructors

PDFStringAppearanceOptions()

Initializes a new PDFStringAppearanceOptions object.

public PDFStringAppearanceOptions()

PDFStringAppearanceOptions(PDFFont, PDFPen, PDFBrush)

Initializes a new PDFStringAppearanceOptions object with the specified pen and brush.

public PDFStringAppearanceOptions(PDFFont font, PDFPen pen, PDFBrush brush)

Parameters

font PDFFont
Font for drawing text.

pen PDFPen
Pen for drawing text.

brush PDFBrush
Brush for drawing text.


Properties

Brush

Gets or sets the text brush.

public PDFBrush Brush { get; set; }

Property Value

PDFBrush
The brush for filling the text outline.


Font

Gets or sets the text font.

public PDFFont Font { get; set; }

Property Value

PDFFont
The font used for drawing text.

Remarks

If the font is null, no text is drawn.


Pen

Gets or sets the text pen.

public PDFPen Pen { get; set; }

Property Value

PDFPen
A pen used for stroking the text outline.

Remarks

Stroking the text outline when a small font size is used results in a bolder text appearance.