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.
Assembly: System.Windows (in System.Windows.dll)
Property Value
Type: System.Windows.TextDecorationCollectionA 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.