Underline Property
Collapse the table of content
Expand the table of content

TextDecorations.Underline Property

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

Specifies an underlined text decoration.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public static TextDecorationCollection Underline { get; }

Property Value

Type: System.Windows.TextDecorationCollection
A TextDecorationCollection that represents an underlined text decoration.

The XAML usage for Underline is not an attribute syntax of the TextDecorations type (TextDecorations cannot be instantiated in XAML). Instead, Underline is a static property that can be used to fill properties/attributes that take the type TextDecorationCollection, either in code or XAML. Examples of such properties/attributes are TextBlock.TextDecorations and Inline.TextDecorations.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft