---
Product: Aspose.PDF
Platform: go
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/go/textstyle
---

# TextStyle

## Overview

`TextStyle` is a type in Aspose.PDF FOSS for Go.

TextStyle defines reusable text formatting properties.

Properties: `Background`, `Behind`, `Color`, `Font`, `HAlign`, `Invisible`, and 8 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `Font` | `Font` | Read/Write | Gets the font. |
| `Size` | `float64` | Read/Write | Gets the size. |
| `Color` | `*Color` | Read/Write | Gets the color. |
| `Background` | `*Color` | Read/Write | Gets the background. |
| `HAlign` | `HAlign` | Read/Write | Gets the h align. |
| `VAlign` | `VAlign` | Read/Write | Gets the v align. |
| `LineSpacing` | `float64` | Read/Write | Gets the line spacing. |
| `Underline` | `bool` | Read/Write | Gets the underline. |
| `Strikethrough` | `bool` | Read/Write | Gets the strikethrough. |
| `Rotation` | `float64` | Read/Write | Gets the rotation. |
| `Behind` | `bool` | Read/Write | Gets the behind. |
| `RTL` | `bool` | Read/Write | Gets the rtl. |
| `Skew` | `float64` | Read/Write | Gets the skew. |
| `Invisible` | `bool` | Read/Write | Gets the invisible. |

## See Also

- [Aspose.PDF — Enterprise API Reference](https://reference.aspose.com/pdf/)