## TextRun class

The class representing a piece of text with associated style.

```csharp
public class TextRun
```

## Constructors

| Name | Description |
| --- | --- |
| [TextRun](textrun/#constructor)() | Initializes a new instance of the `TextRun` class with empty text and default style. |
| [TextRun](textrun/#constructor_2)(string) | Initializes a new instance of the `TextRun` class with default style. |
| [TextRun](textrun/#constructor_1)(TextStyle) | Initializes a new instance of the `TextRun` class with empty text. |
| [TextRun](textrun/#constructor_3)(string, TextStyle) | Initializes a new instance of the `TextRun` class. |

## Properties

| Name | Description |
| --- | --- |
| [Length](../../aspose.note/textrun/length/) { get; } | Gets the length of the associated text. |
| [Style](../../aspose.note/textrun/style/) { get; set; } | Gets or sets the style. |
| [Text](../../aspose.note/textrun/text/) { get; set; } | Gets or sets the text. |

### See Also

* namespace [Aspose.Note](../../aspose.note/)
* assembly [Aspose.Note](../../)


