Strikeout Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Gets or sets the strikeout attribute of the selected text.
Syntax
public bool Strikeout { get; set; }Public Property Strikeout As BooleanExamples
The following example formats the heading of a short document by using Selection.Strikeout.
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
textControl.Select(0, 17);
Selection selection = textControl.Selection;
selection.Strikeout = true;
if (selection.Strikeout)
{
Console.WriteLine("Selection: Strikeout is enabled.");
}textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
textControl.Select(0, 17)
Dim selection As Selection = textControl.Selection
selection.Strikeout = True
If selection.Strikeout Then
Console.WriteLine("Selection: Strikeout is enabled.")
End IfLimitations
Runtime only.
Remarks
The property's default value is false.
The property returns its default value when the text selection contains multiple characters with mixed setting. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.