WPS 基础接口 > 表格 API 参考 > Application > 属性 > Application.StandardFont 属性
返回或设置标准字体的名称。String 类型,可读写。

语法

表达式.StandardFont

表达式   一个代表 Application 对象的变量。

说明

如果使用该属性更改标准字体,则直到重新启动 ET 后,所做的更改才能生效。

示例

本示例检查操作系统的类型,如果为 Macintosh,则将标准字体设置为 Geneva,如果为 Windows,则将标准字体设置为 Arial。

示例代码
if(Application.OperatingSystem.indexOf("Macintosh") != -1){
    Application.StandardFont = "Geneva"
}
else{
    Application.StandardFont = "Arial"
}

Change the standard ET font?


请参阅