Fonts 属性

       

该属性返回一个 WebPageFonts 集合,该集合代表在 Word 中打开 Web 页时,并且 Web 页中没有指定字体信息或当前的默认字体无法显示 Web 页中的字体集的情况下,Microsoft Word 使用的字体集。

expression.Fonts

expression   必需。该表达式返回一个 DefaultWebObtions 对象。

示例

本示例设置英语/西欧/其他拉丁文种字符集的默认的固定宽度字体为 Courier New,14 磅。

With Application.DefaultWebOptions _
        .Fonts(msoCharacterSetEnglishWesternEuropeanOtherLatinScript)
    .FixedWidthFont = "Courier New"
    .FixedWidthFontSize = 14
End With