TextDecorationStyle
Overview
TextDecorationStyle is a class in Aspose.PDF FOSS for .NET.
The geometry of an underline or strike-through rule the flow draws under a run: a filled rectangle as wide as the text, Thickness + ThicknessEm × size tall, centred Offset + OffsetEm × size from the baseline (negative = below), in Color or, when that is null, the text’s own fill colour.
This class declares 1 method for TextDecorationStyle objects in .NET programs.
Available methods include: At.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: Color, LineCap, Offset, OffsetEm, Opacity, Thickness, and 1 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Thickness | double | Read/Write | Gets or sets the thickness. |
ThicknessEm | double | Read/Write | Gets or sets the thickness em. |
Offset | double | Read/Write | Gets or sets the offset. |
OffsetEm | double | Read/Write | Gets or sets the offset em. |
Color | Color? | Read/Write | Gets or sets the color. |
LineCap | int | Read/Write | The line cap (J: 0 butt, 1 round, 2 square) set before the rule is painted; a filled rectangle does not show it, but a caller mirroring another writer’s stream may want the operator. |
Opacity | double? | Read/Write | The rule’s fill opacity (ca) as a real in 0..1; null (the default) paints it opaque. |
Methods
| Signature | Description |
|---|---|
At(fontSize: double) | The rule’s height and the height of its centre above the baseline at fontSize. |