TextStyle

Overview

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

Bundled font / colour / alignment style applied to a free-text annotation’s rich text.

This class provides 1 method for working with TextStyle objects in .NET programs. Available methods include: ToString. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Alignment, Color, FontName, FontSize, HorizontalAlignment.

Properties

NameTypeAccessDescription
FontNamestringRead/WriteFont name (e.g.
FontSizedoubleRead/WriteFont size in points.
ColorSystem.Drawing.ColorRead/WriteForeground colour.
AlignmentTextAlignmentRead/WriteAnnotation-specific text alignment.
HorizontalAlignmentAspose.Pdf.HorizontalAlignmentRead/WriteTop-level horizontal alignment.

Methods

SignatureDescription
ToString()Calls ToString on this TextStyle instance.

See Also