DefaultAppearance

DefaultAppearance

Overview

DefaultAppearance is a class in Aspose.PDF FOSS for .NET.

Represents the default appearance of a free text annotation.

This class provides 4 methods for working with DefaultAppearance objects in .NET programs. Available methods include: DefaultAppearance. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Font, FontName, FontResourceName, FontSize, Text, TextColor.

Properties

NameTypeAccessDescription
FontNamestringRead/WriteFont name (e.g.
FontSizedoubleRead/WriteFont size in points.
TextColorSystem.Drawing.ColorRead/WriteText color.
FontResourceNamestringRead/WritePDF resource name used to reference this font in /DA.
FontAspose.Pdf.Text.Font?ReadThe typed font this appearance was built from (when constructed from a Font); null otherwise.
TextstringReadRaw /DA appearance string.

Methods

SignatureDescription
DefaultAppearance(fontName: string, fontSize: double, textColor: System.Drawing.Color)Create a default appearance with font, size, and color.
DefaultAppearance(fontName: string, fontSize: double)Create a default appearance with just a font name and size.
DefaultAppearance(font: Aspose.Pdf.Text.Font, fontSize: double, textColor: System.Drawing.Color)Create a default appearance from a typed Font instance plus size and color.
DefaultAppearance()Create with default values (Helvetica 12pt black).

See Also