**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:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | java.lang.String | 文本。 |

