Gets or sets the strikeout attribute of the selected text.

Syntax

public bool Strikeout { get; set; }
Public Property Strikeout() As Boolean

Examples

The following example uses Strikeout property to set the Strikeout attribute of the selected text. The text in this case is "TX Text Control".

textControl1.Text  = "TX Text Control";

TXTextControl.Selection mySel = new TXTextControl.Selection(3, 4);

mySel.Bold      = true;
mySel.Italic    = true;
mySel.Strikeout = true;

textControl1.Selection = mySel;
TextControl1.Text = "TX Text Control"

Dim mySel as TXTextControl.Selection = New TXTextControl.Selection(3, 4)

mySel.Bold      = True
mySel.Italic    = True
mySel.Strikeout = True

TextControl1.Selection = mySel

Limitations

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.