# FormattingStyle.Strikeout Property

> Gets or sets the strikeout attribute of the style.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 10.1
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > FormattingStyle.Strikeout Property
- **463 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/strikeout-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/strikeout-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/strikeout-property/llms-full.txt

---

### Description

Gets or sets the strikeout attribute of the style.

### Syntax

```csharp
public bool Strikeout { get; set; }
```

```vbnet
Public Property Strikeout As Boolean
```

### Examples

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

```csharp
FormattingStyle formattingStyle = new InlineStyle("Emphasis");

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

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

```vbnet
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))
```

---

## Nearby

- **Previous:** [FormattingStyle.Name Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/name-property/llms-full.txt)
- **Next:** [FormattingStyle.TextBackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/textbackcolor-property/llms-full.txt)
