**Inheritance:**
java.lang.Object, [com.aspose.imaging.fileformats.opendocument.OdObject](../../com.aspose.imaging.fileformats.opendocument/odobject)
```
public class OdText extends OdObject
```

The text object
## Constructors

| Constructor | Description |
| --- | --- |
| [OdText()](#OdText--) |  |
## Methods

| Method | Description |
| --- | --- |
| [getText()](#getText--) | Gets or sets the text. |
| [setText(String value)](#setText-java.lang.String-) | Gets or sets the text. |
### OdText() {#OdText--}
```
public OdText()
```


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


Gets or sets the text.

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


Gets or sets the text.

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

