TextDecorationStyle

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

NameTypeAccessDescription
ThicknessdoubleRead/WriteGets or sets the thickness.
ThicknessEmdoubleRead/WriteGets or sets the thickness em.
OffsetdoubleRead/WriteGets or sets the offset.
OffsetEmdoubleRead/WriteGets or sets the offset em.
ColorColor?Read/WriteGets or sets the color.
LineCapintRead/WriteThe 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.
Opacitydouble?Read/WriteThe rule’s fill opacity (ca) as a real in 0..1; null (the default) paints it opaque.

Methods

SignatureDescription
At(fontSize: double)The rule’s height and the height of its centre above the baseline at fontSize.

See Also