Font.Grow 方法 (Word)

将字号增大为下一个可用的字号。

语法

expression. Grow

表达式是必需的。 一个代表 Font 对象的变量。

备注

如果所选内容或范围包含多种字号,则将每一个字号都增大为下一个可用的设置。

示例

以下示例增大新文档中第四个单词的字号。

Dim rngTemp As Range 
 
Set rngTemp = Documents.Add.Content 
rngTemp.InsertAfter "This is a test of the Grow method." 
MsgBox "Click OK to increase the font size of the fourth word." 
rngTemp.Words(4).Font.Grow

以下示例增大选定文本的字号。

If Selection.Type = wdSelectionNormal Then 
 Selection.Font.Grow 
Else 
 MsgBox "You need to select some text." 
End If

另请参阅

Font 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。