# ServerTextControl.InlineStyles Property

> Gets a collection of all inline styles the current document contains. The property's value is an object of the type InlineStyleCollection.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 12.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > ServerTextControl.InlineStyles Property
- **345 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/inlinestyles-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/inlinestyles-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/inlinestyles-property/llms-full.txt

---

### Description

Gets a collection of all inline styles the current document contains. The property's value is an object of the type [InlineStyleCollection](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/inlinestylecollection/llms-full.txt).

### Syntax

```csharp
public InlineStyleCollection InlineStyles { get; }
```

```vbnet
Public ReadOnly Property InlineStyles As InlineStyleCollection
```

### Examples

The following example iterates through the inline styles collection and processes each inline style.

```csharp
foreach (InlineStyle inlineStyle in textControl.InlineStyles)
{
    inlineStyle.Name = "CustomerName";
}
```

```vbnet
For Each inlineStyle As InlineStyle In textControl.InlineStyles
    inlineStyle.Name = "CustomerName"
Next
```

### Limitations

Runtime only.

Read only.

---

## Nearby

- **Previous:** [ServerTextControl.Images Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/images-property/llms-full.txt)
- **Next:** [ServerTextControl.InputPosition Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/inputposition-property/llms-full.txt)
