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
| Name | Type | Access | Description |
|---|---|---|---|
FontName | string | Read/Write | Font name (e.g. |
FontSize | double | Read/Write | Font size in points. |
Color | System.Drawing.Color | Read/Write | Foreground colour. |
Alignment | TextAlignment | Read/Write | Annotation-specific text alignment. |
HorizontalAlignment | Aspose.Pdf.HorizontalAlignment | Read/Write | Top-level horizontal alignment. |
Methods
| Signature | Description |
|---|---|
ToString() | Calls ToString on this TextStyle instance. |