TextDecorations Class
Collapse the table of content
Expand the table of content

TextDecorations Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Implements a set of predefined text decorations.


Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public static class TextDecorations
See Remarks.

The TextDecorations type exposes the following members.

Public propertyStatic memberUnderlineSpecifies an underlined text decoration.

A text decoration is a visual ornament that you can add to text. In Windows Phone, there is one type of text decoration: Underline.

TextDecorationCollection is the value type for Windows Phone properties or attributes that specify a text decorations value, but you must use static properties of TextDecorations to specify a value. In XAML, you specify the name of a TextDecorations property as the attribute value. This functionality is enabled by native XAML parsing behavior that processes the string value.

In code, you can set the value of properties such as Inline.TextDecorations directly to Underline, or you can set to null (for the equivalent behavior of setting to empty string in XAML, or to restore the default value).

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

© 2017 Microsoft