Interface ITextFrame
public interface ITextFrame
代表
com.grapecity.documents.excel.IShape对象中的文本框。-
Method Summary
Modifier and TypeMethodDescription获取文本方向。获取形状中文本框的水平锚点。float获取文本框底部与包含文本的形状内接矩形底部之间的距离(以点为单位)。float获取文本框左侧与包含文本的形状内接矩形底部之间的距离(以点为单位)。float获取文本框右侧与包含文本的形状内接矩形底部的距离(以点为单位)。float获取文本框顶部与包含文本的形状内接矩形底部之间的距离(以点为单位)。返回代表对象中文本的ITextRange对象。获取形状中文本框的垂直锚点。voidsetDirection(TextDirection value) 设置文本方向。void设置文本框在形状中的水平锚点
如果您想设置文本的水平对齐方式,请使用ITextRange.setTextAlignment(TextAlignmentAnchor textAlignment)voidsetMarginBottom(float bottom) 设置文本框底部与包含文本的形状内接矩形底部之间的距离(以点为单位)。voidsetMarginLeft(float left) 设置文本框左侧与包含文本的形状内接矩形底部的距离(以点为单位)。voidsetMarginRight(float right) 设置文本框右侧与包含文本的形状内接矩形底部的距离(以点为单位)。voidsetMarginTop(float top) 设置文本框顶部与包含文本的形状内接矩形底部之间的距离(以点为单位)。voidsetVerticalAnchor(VerticalAnchor value) 设置形状中文本框的垂直锚点。
-
Method Details
-
getMarginBottom
float getMarginBottom()获取文本框底部与包含文本的形状内接矩形底部之间的距离(以点为单位)。 -
setMarginBottom
void setMarginBottom(float bottom) 设置文本框底部与包含文本的形状内接矩形底部之间的距离(以点为单位)。 -
getMarginLeft
float getMarginLeft()获取文本框左侧与包含文本的形状内接矩形底部之间的距离(以点为单位)。 -
setMarginLeft
void setMarginLeft(float left) 设置文本框左侧与包含文本的形状内接矩形底部的距离(以点为单位)。 -
getMarginRight
float getMarginRight()获取文本框右侧与包含文本的形状内接矩形底部的距离(以点为单位)。 -
setMarginRight
void setMarginRight(float right) 设置文本框右侧与包含文本的形状内接矩形底部的距离(以点为单位)。 -
getMarginTop
float getMarginTop()获取文本框顶部与包含文本的形状内接矩形底部之间的距离(以点为单位)。 -
setMarginTop
void setMarginTop(float top) 设置文本框顶部与包含文本的形状内接矩形底部之间的距离(以点为单位)。 -
getDirection
TextDirection getDirection()获取文本方向。 -
setDirection
设置文本方向。 -
getTextRange
ITextRange getTextRange()返回代表对象中文本的ITextRange对象。 -
getHorizontalAnchor
HorizontalAnchor getHorizontalAnchor()获取形状中文本框的水平锚点。 -
setHorizontalAnchor
设置文本框在形状中的水平锚点
如果您想设置文本的水平对齐方式,请使用ITextRange.setTextAlignment(TextAlignmentAnchor textAlignment) -
getVerticalAnchor
VerticalAnchor getVerticalAnchor()获取形状中文本框的垂直锚点。 -
setVerticalAnchor
设置形状中文本框的垂直锚点。
-