TX Text Control .NET for Windows Forms

Strikeout Property

Property|Introduced in 10.1
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the strikeout attribute of the style.

Syntax

public bool Strikeout { get; set; }

Examples

The following example creates a reusable emphasis style and adds it to the document by using FormattingStyle.Strikeout.

FormattingStyle formattingStyle = new InlineStyle("Emphasis");

formattingStyle.Strikeout = true;
if (formattingStyle.Strikeout)
{
    Console.WriteLine("Formatting Style: Strikeout is enabled.");
}

textControl.InlineStyles.Add((InlineStyle)formattingStyle);