Export (0) Print
Expand All

AccessText.TextDecorations Property

Gets or sets the decorations that are added to the text of an AccessText element.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public TextDecorationCollection TextDecorations { get; set; }
/** @property */
public TextDecorationCollection get_TextDecorations ()

/** @property */
public void set_TextDecorations (TextDecorationCollection value)

public function get TextDecorations () : TextDecorationCollection

public function set TextDecorations (value : TextDecorationCollection)

<object TextDecorations="TextDecorationCollection" .../>
 OneOrMoreTextDecorations  One or more TextDecoration elements. 

Property Value

The TextDecorations applied to the text of an AccessText. The default value is a null reference (Nothing in Visual Basic).

Identifier Field


Metadata properties set to true


For more information about text decorations, see TextDecorations.

This property is not typically set, either by using markup or code.

This property exposes the default decoration for an access key (an underline in the same text color as the text) for possible styling or programmatic change. Because users expect access key identifiers to have a certain appearance in the user interface (UI), a better choice is to change this property by using application-wide mechanisms, such as application styles or custom themes.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

© 2015 Microsoft