**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
```

Текстовый фрагмент
## Конструкторы

| Конструктор | Описание |
| --- | --- |
| [OdTextSpan(OdObject parent)](#OdTextSpan-com.aspose.imaging.fileformats.opendocument.OdObject-) | Инициализирует новый экземпляр класса `OdTextSpan`. |
## Методы

| Метод | Описание |
| --- | --- |
| [getText()](#getText--) | Получает текст. |
| [setText(String value)](#setText-java.lang.String-) | Устанавливает текст. |
### OdTextSpan(OdObject parent) {#OdTextSpan-com.aspose.imaging.fileformats.opendocument.OdObject-}
```
public OdTextSpan(OdObject parent)
```


Инициализирует новый экземпляр класса `OdTextSpan`.

**Parameters:**
| Параметр | Тип | Описание |
| --- | --- | --- |
| parent | [OdObject](../../com.aspose.imaging.fileformats.opendocument/odobject) | Родитель. |

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


Получает текст.

**Returns:**
java.lang.String - текст.
### setText(String value) {#setText-java.lang.String-}
```
public final void setText(String value)
```


Устанавливает текст.

**Parameters:**
| Параметр | Тип | Описание |
| --- | --- | --- |
| value | java.lang.String | текст. |

