**Inheritance:**
java.lang.Object
```
public class TextParagraph
```

Represents PUB text paragraph
## Constructors

| Constructor | Description |
| --- | --- |
| [TextParagraph(List<TextGroup> textParts, ParagraphStyle style)](#TextParagraph-java.util.List-com.aspose.pub.TextGroup--com.aspose.pub.ParagraphStyle-) | Constructor |
## Methods

| Method | Description |
| --- | --- |
| [getTextParts()](#getTextParts--) | Text groups |
| [getStyle()](#getStyle--) | Style of paragraph |
### TextParagraph(List<TextGroup> textParts, ParagraphStyle style) {#TextParagraph-java.util.List-com.aspose.pub.TextGroup--com.aspose.pub.ParagraphStyle-}
```
public TextParagraph(List<TextGroup> textParts, ParagraphStyle style)
```


Constructor

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| textParts | java.util.List<com.aspose.pub.TextGroup> | Text groups |
| style | [ParagraphStyle](../../com.aspose.pub/paragraphstyle) | Paragraph's style |

### getTextParts() {#getTextParts--}
```
public final TextGroup[] getTextParts()
```


Text groups

**Returns:**
com.aspose.pub.TextGroup[] - array of TextGroup instances
### getStyle() {#getStyle--}
```
public final ParagraphStyle getStyle()
```


Style of paragraph

**Returns:**
[ParagraphStyle](../../com.aspose.pub/paragraphstyle) - ParagraphStyle instance
