---
title: "TextParagraph"
url: "https://reference.aspose.com/pub/fr/java/com.aspose.pub/textparagraph/"
product: "Référence API d'Aspose.PUB pour Java"
description: "Représente le paragraphe de texte PUB"
---

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

Représente le paragraphe de texte PUB
## Constructeurs

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

| Méthode | Description |
| --- | --- |
| [getTextParts()](#getTextParts--) | Groupes de texte |
| [getStyle()](#getStyle--) | Style du paragraphe |
### 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:**
| Paramètre | Type | Description |
| --- | --- | --- |
| textParts | java.util.List<com.aspose.pub.TextGroup> | Groupes de texte |
| style | [ParagraphStyle](../../com.aspose.pub/paragraphstyle) | Style du paragraphe |

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


Groupes de texte

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


Style du paragraphe

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