---
title: "TextGroup"
url: "https://reference.aspose.com/pub/fr/java/com.aspose.pub/textgroup/"
product: "Référence API d'Aspose.PUB pour Java"
description: "Groupe de texte"
---

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

Groupe de texte
## Constructeurs

| Constructor | Description |
| --- | --- |
| [TextGroup(String text, TextStyle style)](#TextGroup-java.lang.String-com.aspose.pub.TextStyle-) | Constructor |
## Méthodes

| Méthode | Description |
| --- | --- |
| [getText()](#getText--) | Texte dans le groupe |
| [updateText(String newText)](#updateText-java.lang.String-) | Met à jour le texte |
| [getStyle()](#getStyle--) | Style pour le groupe de texte |
### TextGroup(String text, TextStyle style) {#TextGroup-java.lang.String-com.aspose.pub.TextStyle-}
```
public TextGroup(String text, TextStyle style)
```


Constructor

**Parameters:**
| Paramètre | Type | Description |
| --- | --- | --- |
| text | java.lang.String | Texte dans le groupe |
| style | [TextStyle](../../com.aspose.pub/textstyle) | Style du groupe |

### getText() {#getText--}
```
public final String getText()
```


Texte dans le groupe

**Returns:**
java.lang.String - valeur de chaîne
### updateText(String newText) {#updateText-java.lang.String-}
```
public final void updateText(String newText)
```


Met à jour le texte

**Parameters:**
| Paramètre | Type | Description |
| --- | --- | --- |
| newText | java.lang.String | Valeur pour le nouveau texte |

### getStyle() {#getStyle--}
```
public final TextStyle getStyle()
```


Style pour le groupe de texte

**Returns:**
[TextStyle](../../com.aspose.pub/textstyle) - TextStyle instance
