Strikeout Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the strikeout attribute of the style.
Syntax
public bool Strikeout { get; set; }Public Property Strikeout As BooleanExamples
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);Dim formattingStyle As FormattingStyle = New InlineStyle("Emphasis")
formattingStyle.Strikeout = True
If formattingStyle.Strikeout Then
Console.WriteLine("Formatting Style: Strikeout is enabled.")
End If
textControl.InlineStyles.Add(DirectCast(formattingStyle, InlineStyle))