# InlineStyle.ResetToParagraph Method

> Resets one or more of the style's attributes to its default value which is the same value as defined for the surrounding paragraph. Text formatted through an inline style has all the attributes defined through the surrounding paragraph except the attributes explicitly defined through the inline style.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **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 > InlineStyle.ResetToParagraph Method
- **497 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/inlinestyle/resettoparagraph-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/inlinestyle/resettoparagraph-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/inlinestyle/resettoparagraph-method/llms-full.txt

---

### Description

Resets one or more of the style's attributes to its default value which is the same value as defined for the surrounding paragraph. Text formatted through an inline style has all the attributes defined through the surrounding paragraph except the attributes explicitly defined through the inline style.

### Syntax

```csharp
public void ResetToParagraph(InlineStyle.Attributes attributes);
```

```vbnet
Public Sub ResetToParagraph(attributes As InlineStyle.Attributes)
```

### Parameters

| Parameter | Description |
|---|---|
| attributes | Specifies one or more attributes to reset. It can be a bitwise combination of values from the Attributes enumeration contained in this class. |

### Examples

The following example creates and configures a reusable inline style for the document by using `InlineStyle.ResetToParagraph`.

```csharp
InlineStyle inlineStyle = new("Emphasis");
textControl.InlineStyles.Add(inlineStyle);

inlineStyle.ResetToParagraph(InlineStyle.Attributes.FontName);
Console.WriteLine("Inline Style is ready for use.");
```

```vbnet
Dim inlineStyle As New InlineStyle("Emphasis")
textControl.InlineStyles.Add(inlineStyle)

inlineStyle.ResetToParagraph(InlineStyle.Attributes.FontName)
Console.WriteLine("Inline Style is ready for use.")
```

---

## Nearby

- **Previous:** [InlineStyle.IsInheritedFromParagraph Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/inlinestyle/isinheritedfromparagraph-method/llms-full.txt)
- **Next:** [InlineStyleCollection Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/inlinestylecollection/llms-full.txt)
