TextDecorations::Strikethrough Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Specifies a strikethrough TextDecoration.

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

property TextDecorationCollection^ Strikethrough {
	static TextDecorationCollection^ get();

Property Value

Type: System.Windows::TextDecorationCollection^

A value that represents a strikethrough TextDecoration.

The following example shows the location of a strikethrough text decoration relative to the text.

Diagram of text decoration locations

Example of a strikethrough text decoration

In the following example, a strikethrough text decoration is created by using 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. -->
  FontSize="36" >
  The quick red fox

.NET Framework
Available since 3.0
Return to top