4.62 FAQ-888 如何利用 LabTalk 为特殊的文本对象(如坐标轴标题)设置属性?

Last Update: 7/15/2018

Origin 有一些特殊的文本对象,例如坐标轴标题等,详情如下:

对象 对象名称
底部的 X 轴标题 xb
顶部的 X 轴标题 xt
左侧的 Y 轴标题 yl
右侧的 Y 轴标题 yr
后方的 Z 轴标题 zb
前方的 Z 轴标题 zf

对于这些特殊的对象,您可以通过运行 objectName.= 获取或者设置它的属性。

xb.fsize = 20; //set the font size of bottom X axis title.
yl.fillcolor=2; //Add a box frame to left Y axis title and set the fill color to red.
yl.transparency=50;//set the transparency to 50%.
注: 运行 objectName.= 可查看该对象的几乎全部的属性。另外,在此页中也列出了常用的属性。



Keywords:LabTalk, text object, axis title, property, 文本对象,坐标轴标题,属性