# Selection.RemoveInlineStyles Method

> Removes all character based styles of the selected text so that all attributes are reset to the attributes of the paragraph style.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 24.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl > Selection.RemoveInlineStyles Method
- **508 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selection/removeinlinestyles-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selection/removeinlinestyles-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selection/removeinlinestyles-method/llms-full.txt

---

### Description

Removes all character based styles of the selected text so that all attributes are reset to the attributes of the paragraph style.

### Syntax

```csharp
public bool RemoveInlineStyles();
```

```vbnet
Public Function RemoveInlineStyles() As Boolean
```

### Return Value

The return value is true, if the operation was successful. Otherwise, it is false.

### Examples

The following example formats the heading of a short document by using `Selection.RemoveInlineStyles`.

```csharp
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
textControl.Select(0, 17);
Selection selection = textControl.Selection;

if (selection.RemoveInlineStyles())
{
    Console.WriteLine("Remove Inline Styles completed successfully.");
}
```

```vbnet
textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
textControl.Select(0, 17)
Dim selection As Selection = textControl.Selection

If selection.RemoveInlineStyles() Then
    Console.WriteLine("Remove Inline Styles completed successfully.")
End If
```

---

## Nearby

- **Previous:** [Selection.RemoveFormatting Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selection/removeformatting-method/llms-full.txt)
- **Next:** [Selection.Save Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selection/save-method/llms-full.txt)
