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

Text group
## Constructors

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

| Method | Description |
| --- | --- |
| [getText()](#getText--) | Text in group |
| [updateText(String newText)](#updateText-java.lang.String-) | Updates text |
| [getStyle()](#getStyle--) | Style for text group |
### TextGroup(String text, TextStyle style) {#TextGroup-java.lang.String-com.aspose.pub.TextStyle-}
```
public TextGroup(String text, TextStyle style)
```


Constructor

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| text | java.lang.String | Text in group |
| style | [TextStyle](../../com.aspose.pub/textstyle) | Style of group |

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


Text in group

**Returns:**
java.lang.String - String value
### updateText(String newText) {#updateText-java.lang.String-}
```
public final void updateText(String newText)
```


Updates text

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| newText | java.lang.String | Value for new text |

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


Style for text group

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