语法
表达式.StandardFont
表达式 一个代表 Application 对象的变量。
说明
如果使用该属性更改标准字体,则直到重新启动 ET 后,所做的更改才能生效。
示例
本示例检查操作系统的类型,如果为 Macintosh,则将标准字体设置为 Geneva,如果为 Windows,则将标准字体设置为 Arial。
if(Application.OperatingSystem.indexOf("Macintosh") != -1){ Application.StandardFont = "Geneva" } else{ Application.StandardFont = "Arial" }