Inline::TextDecorations Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets a value that specifies the text decorations that are applied to the content in an Inline element.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
<inline TextDecorations="Underline"/> -or- <inline TextDecorations="None"/>
Property Value
Type: System.Windows::TextDecorationCollectionA TextDecorationCollection, or nullptr if no text decorations are applied.
Dependency property identifier field: TextDecorationsProperty
A text decoration is a visual ornament that you can add to text. Windows Phone supports only one type of text decoration: Underline. The type name of type used to set this property (TextDecorationCollection) suggests multiple possible values, but only one value is supported. The TextDecorationCollection object in Windows Phone supports only object. It does support Collection interface APIs or a public constructor.
In XAML, you can set TextDecorations to the values Underline or None.
In code, you can set the value of Inline::TextDecorations to Underline or to nullptr. Setting the value to nullptr restores the default value if it has been set to Underline in XAML or code previously.
TextDecorations settings for Run child elements override this top-level setting.