# FormattingStyle.Bold Property

> Gets or sets the bold 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.Bold Property
- **454 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/bold-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/bold-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/bold-property/llms-full.txt

---

### Description

Gets or sets the bold attribute of the style.

### Syntax

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

```vbnet
Public Property Bold As Boolean
```

### Examples

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

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

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

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

```vbnet
Dim formattingStyle As FormattingStyle = New InlineStyle("Emphasis")

formattingStyle.Bold = True
If formattingStyle.Bold Then
    Console.WriteLine("Formatting Style: Bold is enabled.")
End If

textControl.InlineStyles.Add(DirectCast(formattingStyle, InlineStyle))
```

---

## Nearby

- **Previous:** [FormattingStyle.BaseStyle Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/basestyle-property/llms-full.txt)
- **Next:** [FormattingStyle.Capitals Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/capitals-property/llms-full.txt)
