返回或设置字体大小(对于 Font 对象)或指定复选框的大小(对于 CheckBox 对象),以磅为单位。Single 类型,可读写。
expression.Size
expression 必需。该表达式返回“应用于”列表中的一个对象。
本示例插入文本并将插入文本的第七个单词的字号设置为 20 磅。
Selection.Collapse Direction:=wdCollapseEnd
With Selection.Range
.Font.Reset
.InsertBefore "This is a demonstration of font size."
.Words(7).Font.Size = 20
End With
本示例确定选定文本的字号。
mySel = Selection.Font.Size
If mySel = wdUndefined Then
MsgBox "There's a mix of font sizes in the selection."
Else
MsgBox mySel & " points"
End If
本示例将活动文档中名为“Check1”的复选框的大小设置为 14 磅,然后选中该复选框。
With ActiveDocument.FormFields("Check1").CheckBox
.AutoSize = False
.Size = 14
.Value = True
End With