Provides a set of static predefined text decorations.
Assembly: PresentationCore (in PresentationCore.dll)
There are four types of text decorations: baseline, overline, strikethrough, and underline. The following example shows the locations of the text decorations relative to the text.
In the following example, a strikethrough text decoration uses the default font value.
You can also specify multiple text decorations for the same text. In the following example, an underline and overline text decoration are used for the same text.
You can use the string value "None" to indicate that there are no text decorations in thecollection. In the following example, the collection is set to "None".
You can remove all text decorations from text by using the Clear method. In the following example, the collection is cleared.
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.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.