CmxTextBlockSpec
内容
[
隐藏
]Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.imaging.fileformats.cmx.objectmodel.specs.ICmxObjectSpec
public class CmxTextBlockSpec implements ICmxObjectSpec
表示为文本块指定的信息。
构造函数
| 构造函数 | 描述 |
|---|---|
| CmxTextBlockSpec() |
方法
| 方法 | 描述 |
|---|---|
| getParagraphStyle() | 获取段落样式。 |
| setParagraphStyle(CmxParagraphStyle value) | 设置段落样式。 |
| getFont() | 获取字体。 |
| setFont(Font value) | 设置字体。 |
| getMatrix() | 获取变换矩阵。 |
| setMatrix(Matrix value) | 设置变换矩阵。 |
| getText() | 获取文本。 |
| setText(String value) | 设置文本。 |
| getCharLocations() | 获取字符位置。 |
| setCharLocations(PointF[] value) | 设置字符位置。 |
| equals(Object o) | 检查对象是否相等。 |
| hashCode() | 获取当前对象的哈希码。 |
CmxTextBlockSpec()
public CmxTextBlockSpec()
getParagraphStyle()
public final CmxParagraphStyle getParagraphStyle()
获取段落样式。
Returns: CmxParagraphStyle - the paragraph style.
setParagraphStyle(CmxParagraphStyle value)
public final void setParagraphStyle(CmxParagraphStyle value)
设置段落样式。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | CmxParagraphStyle | 段落样式。 |
getFont()
public final Font getFont()
获取字体。
Returns: Font - the font.
setFont(Font value)
public final void setFont(Font value)
设置字体。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | Font | 字体。 |
getMatrix()
public final Matrix getMatrix()
获取变换矩阵。
Returns: Matrix - the transformation matrix.
setMatrix(Matrix value)
public final void setMatrix(Matrix value)
设置变换矩阵。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | Matrix | 变换矩阵。 |
getText()
public final String getText()
获取文本。
Returns: java.lang.String - 文本。
setText(String value)
public final void setText(String value)
设置文本。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | java.lang.String | 文本。 |
getCharLocations()
public final PointF[] getCharLocations()
获取字符位置。
Returns: com.aspose.imaging.PointF[] - 字符位置。
setCharLocations(PointF[] value)
public final void setCharLocations(PointF[] value)
设置字符位置。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | PointF[] | 字符位置。 |
equals(Object o)
public boolean equals(Object o)
检查对象是否相等。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| o | java.lang.Object | 其他对象。 |
Returns: boolean - 相等比较结果。
hashCode()
public int hashCode()
获取当前对象的哈希码。
Returns: int - 哈希码。