**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 OdTextSpan extends OdStyledObject
```

El segmento de texto
## Constructores

| Constructor | Descripción |
| --- | --- |
| [OdTextSpan(OdObject parent)](#OdTextSpan-com.aspose.imaging.fileformats.opendocument.OdObject-) | Inicializa una nueva instancia de la clase `OdTextSpan`. |
## Métodos

| Método | Descripción |
| --- | --- |
| [getText()](#getText--) | Obtiene el texto. |
| [setText(String value)](#setText-java.lang.String-) | Establece el texto. |
### OdTextSpan(OdObject parent) {#OdTextSpan-com.aspose.imaging.fileformats.opendocument.OdObject-}
```
public OdTextSpan(OdObject parent)
```


Inicializa una nueva instancia de la clase `OdTextSpan`.

**Parameters:**
| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| parent | [OdObject](../../com.aspose.imaging.fileformats.opendocument/odobject) | El padre. |

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


Obtiene el texto.

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


Establece el texto.

**Parameters:**
| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| valor | java.lang.String | el texto. |

