# FormattingStyle.Italic Property

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

---

### Description

Gets or sets the italic attribute of the style.

### Syntax

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

```vbnet
Public Property Italic As Boolean
```

### Examples

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

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

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

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

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

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

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

---

## Nearby

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