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

# TextFormattingOptions

## Overview

`TextFormattingOptions` is a class in Aspose.PDF FOSS for .NET.

Represents text formatting options for a TextParagraph.

This class provides 2 methods for working with TextFormattingOptions objects in .NET programs.
Available methods include: `TextFormattingOptions`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `FirstLineIndent`, `HyphenSymbol`, `LineSpacing`, `LineSpacingPoints`, `SubsequentLinesIndent`, `WrapMode`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `WrapMode` | `WordWrapMode` | Read/Write | Gets or sets the word wrap mode for the paragraph. |
| `LineSpacing` | `LineSpacingMode` | Read/Write | Line-spacing interpretation mode. |
| `LineSpacingPoints` | `double` | Read/Write | Line-spacing value in points. |
| `FirstLineIndent` | `float` | Read/Write | Indent applied to the first line of the paragraph (points). |
| `SubsequentLinesIndent` | `float` | Read/Write | Indent applied to lines after the first (points). |
| `HyphenSymbol` | `string` | Read/Write | Symbol used at line breaks when hyphenation is in effect (default "-"). |

## Methods

| Signature | Description |
|-----------|-------------|
| `TextFormattingOptions()` | Calls TextFormattingOptions on this TextFormattingOptions instance. |
| `TextFormattingOptions(wrapMode: WordWrapMode)` | Construct with an explicit wrap mode. |

## See Also

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