**Inheritance:**
java.lang.Object, [com.aspose.imaging.fileformats.opendocument.OdObject](../../com.aspose.imaging.fileformats.opendocument/odobject), [com.aspose.imaging.fileformats.opendocument.objects.graphic.OdGraphicObject](../../com.aspose.imaging.fileformats.opendocument.objects.graphic/odgraphicobject), [com.aspose.imaging.fileformats.opendocument.objects.graphic.OdStyledObject](../../com.aspose.imaging.fileformats.opendocument.objects.graphic/odstyledobject)
```
public class OdTextParagraph extends OdStyledObject
```

The text paragraph
## Constructors

| Constructor | Description |
| --- | --- |
| [OdTextParagraph(OdObject parent)](#OdTextParagraph-com.aspose.imaging.fileformats.opendocument.OdObject-) | Initializes a new instance of the `OdTextParagraph` class. |
## Methods

| Method | Description |
| --- | --- |
| [getText()](#getText--) | Gets the text. |
| [setText(String value)](#setText-java.lang.String-) | Sets the text. |
### OdTextParagraph(OdObject parent) {#OdTextParagraph-com.aspose.imaging.fileformats.opendocument.OdObject-}
```
public OdTextParagraph(OdObject parent)
```


Initializes a new instance of the `OdTextParagraph` class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| parent | [OdObject](../../com.aspose.imaging.fileformats.opendocument/odobject) | The parent. |

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


Gets the text.

**Returns:**
java.lang.String - the text.
### setText(String value) {#setText-java.lang.String-}
```
public final void setText(String value)
```


Sets the text.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | the text. |

