**Inheritance:**
java.lang.Object

**All Implemented Interfaces:**
[com.aspose.imaging.fileformats.cmx.objectmodel.specs.ICmxObjectSpec](../../com.aspose.imaging.fileformats.cmx.objectmodel.specs/icmxobjectspec)
```
public class CmxTextBlockSpec implements ICmxObjectSpec
```

表示为文本块指定的信息。
## 构造函数

| 构造函数 | 描述 |
| --- | --- |
| [CmxTextBlockSpec()](#CmxTextBlockSpec--) |  |
## 方法

| 方法 | 描述 |
| --- | --- |
| [getParagraphStyle()](#getParagraphStyle--) | 获取段落样式。 |
| [setParagraphStyle(CmxParagraphStyle value)](#setParagraphStyle-com.aspose.imaging.fileformats.cmx.objectmodel.styles.CmxParagraphStyle-) | 设置段落样式。 |
| [getFont()](#getFont--) | 获取字体。 |
| [setFont(Font value)](#setFont-com.aspose.imaging.Font-) | 设置字体。 |
| [getMatrix()](#getMatrix--) | 获取变换矩阵。 |
| [setMatrix(Matrix value)](#setMatrix-com.aspose.imaging.Matrix-) | 设置变换矩阵。 |
| [getText()](#getText--) | 获取文本。 |
| [setText(String value)](#setText-java.lang.String-) | 设置文本。 |
| [getCharLocations()](#getCharLocations--) | 获取字符位置。 |
| [setCharLocations(PointF[] value)](#setCharLocations-com.aspose.imaging.PointF---) | 设置字符位置。 |
| [equals(Object o)](#equals-java.lang.Object-) | 检查对象是否相等。 |
| [hashCode()](#hashCode--) | 获取当前对象的哈希码。 |
### CmxTextBlockSpec() {#CmxTextBlockSpec--}
```
public CmxTextBlockSpec()
```


### getParagraphStyle() {#getParagraphStyle--}
```
public final CmxParagraphStyle getParagraphStyle()
```


获取段落样式。

**Returns:**
[CmxParagraphStyle](../../com.aspose.imaging.fileformats.cmx.objectmodel.styles/cmxparagraphstyle) - the paragraph style.
### setParagraphStyle(CmxParagraphStyle value) {#setParagraphStyle-com.aspose.imaging.fileformats.cmx.objectmodel.styles.CmxParagraphStyle-}
```
public final void setParagraphStyle(CmxParagraphStyle value)
```


设置段落样式。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| value | [CmxParagraphStyle](../../com.aspose.imaging.fileformats.cmx.objectmodel.styles/cmxparagraphstyle) | 段落样式。 |

### getFont() {#getFont--}
```
public final Font getFont()
```


获取字体。

**Returns:**
[Font](../../com.aspose.imaging/font) - the font.
### setFont(Font value) {#setFont-com.aspose.imaging.Font-}
```
public final void setFont(Font value)
```


设置字体。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| value | [Font](../../com.aspose.imaging/font) | 字体。 |

### getMatrix() {#getMatrix--}
```
public final Matrix getMatrix()
```


获取变换矩阵。

**Returns:**
[Matrix](../../com.aspose.imaging/matrix) - the transformation matrix.
### setMatrix(Matrix value) {#setMatrix-com.aspose.imaging.Matrix-}
```
public final void setMatrix(Matrix value)
```


设置变换矩阵。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| value | [Matrix](../../com.aspose.imaging/matrix) | 变换矩阵。 |

### 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 | 文本。 |

### getCharLocations() {#getCharLocations--}
```
public final PointF[] getCharLocations()
```


获取字符位置。

**Returns:**
com.aspose.imaging.PointF[] - 字符位置。
### setCharLocations(PointF[] value) {#setCharLocations-com.aspose.imaging.PointF---}
```
public final void setCharLocations(PointF[] value)
```


设置字符位置。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| value | [PointF\[\]](../../com.aspose.imaging/pointf) | 字符位置。 |

### equals(Object o) {#equals-java.lang.Object-}
```
public boolean equals(Object o)
```


检查对象是否相等。

**Parameters:**
| 参数 | 类型 | 描述 |
| --- | --- | --- |
| o | java.lang.Object | 其他对象。 |

**Returns:**
boolean - 相等比较结果。
### hashCode() {#hashCode--}
```
public int hashCode()
```


获取当前对象的哈希码。

**Returns:**
int - 哈希码。
