.NET Framework 4.6 and 4.5
Gets or sets the vertical location at which the text decoration is drawn.
PresentationCore (in PresentationCore.dll)
member Location : TextDecorationLocation with get, set
The following example shows the locations of the text decorations relative to the text.
Example of text decoration types
The PenOffset property enables you to offset the text decoration from the specified Location.
In the following code example, a strikethrough text decoration is created with a solid color brush for the pen. The Location property is set to Strikethrough.
No code example is currently available or this language may not be supported.
<!-- Use the default font values for the strikethrough text decoration. -->
The quick red fox
Return to top
Available since 3.0