# FormattingStyle.BaseStyle Property

> Gets the FormattingStyle which is the base style of this style. If this style is the TextControl's root style this property returns null. The property's value can be either a ParagraphStyle or an InlineStyle.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.0
- **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.BaseStyle Property
- **481 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/basestyle-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/basestyle-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/basestyle-property/llms-full.txt

---

### Description

Gets the FormattingStyle which is the base style of this style. If this style is the [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/llms-full.txt)'s root style this property returns null. The property's value can be either a [ParagraphStyle](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/paragraphstyle/llms-full.txt) or an [InlineStyle](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/inlinestyle/llms-full.txt).

### Syntax

```csharp
public FormattingStyle BaseStyle { get; }
```

```vbnet
Public ReadOnly Property BaseStyle As FormattingStyle
```

### Examples

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

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

Console.WriteLine($"Base Style: {formattingStyle.BaseStyle}");
Console.WriteLine("Formatting Style is ready for use.");

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

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

Console.WriteLine($"Base Style: {formattingStyle.BaseStyle}")
Console.WriteLine("Formatting Style is ready for use.")

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [FormattingStyle.Baseline Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/baseline-property/llms-full.txt)
- **Next:** [FormattingStyle.Bold Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/bold-property/llms-full.txt)
