Represents a text decoration, which a visual ornamentation that is added to text (such as an underline).
Assembly: PresentationCore (in PresentationCore.dll)
Gets a value that indicates whether the object can be made unmodifiable. (Inherited from Freezable.)
Gets a value that indicates whether the object is currently modifiable. (Inherited from Freezable.)
Gets a value that indicates whether this instance is currently sealed (read-only).(Inherited from DependencyObject.)
Gets or sets the vertical location at which the text decoration is drawn.
Gets or sets the Pen used to draw the text decoration.
Gets or sets the text decoration's offset from its Location.
Gets the units in which the PenOffset value is expressed.
Identifies the Location dependency property.
Identifies the PenOffset dependency property.
Identifies the PenOffsetUnit dependency property.
Identifies the Pen dependency property.
Identifies the PenThicknessUnit dependency property.
There are four types of text decorations: underline, baseline, strikethrough, and overline. The following example shows the locations of the text decorations relative to the text.
The following example shows a text decoration that has been styled with a linear gradient brush and a dashed pen.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.