获取文本矩形区域
- 更新时间2025-07-30
- 阅读时长7分钟
返回一个字符串的左侧、顶部、右侧和底部尺寸(以像素为单位)的簇。

输入/输出
[user-specified font]
—
[user-specified font] specifies the specific font characteristics for the text to draw. 如所需字体不是用户定义字体,VI可忽略该输入。
desired font(Application)
—
desired font specifies the text font.
alignment(left, top)
—
alignment specifies the location of the text relative to the origin you specify.
origin(0,0)
—
origin is the coordinate of the starting point of the text.
text
—
text is the string to draw in the picture.
text orientation
—
text orientation sets the orientation of the text for which you want the bounding rectangle.
rect
—
矩形该簇包含描述矩形外测边缘上、下、左、右坐标的四个数值控件。 水平坐标向右递增,垂直坐标向下递增。
|
[user-specified font]
—
Font Name:
—
Size
—
Strikeout?
—
desired font(Application)
—
alignment(left, top)
—
rect
—
left
—