跳到主要内容

ApiThemeFontScheme

表示主题字体方案的类。

方法​

下表列出了可用的方法。

方法返回值描述
CopyApiThemeFontScheme创建当前主题字体方案的副本。
GetClassType"themeFontScheme"返回 ApiThemeFontScheme 类的类型。
GetMajorFontstring | null | undefined返回当前主题字体方案的主要主题字体。
GetMinorFontstring | null | undefined返回当前主题字体方案的次要主题字体。
GetSchemeNamestring返回当前主题字体方案的名称。
SetFonts无为当前主题字体方案设置字体。
SetSchemeNameboolean为当前主题字体方案设置名称。
ToJSONJSON将 ApiThemeFontScheme 对象转换为 JSON 对象。