True 是表示 如果字型設為下標格式。 讀取/寫入的 Long。
語法
表情。下標
詞 一個回傳 字型 物件的表達式。
註解
會傳回 True、False 或 wdUndefined (True 及 False 的混合)。 可以設為 True 、 False 或 wdToggle 。
設定 下標格式 屬性設 為 True 會使 上標格式 屬性設為 False ,反之亦然。
範例
本範例會在使用中文件的開頭插入文字,並將第十個字元設為下標格式。
Set myRange = ActiveDocument.Range(Start:=0, End:=0)
myRange.InsertAfter "Water = H20"
myRange.Characters(10).Font.Subscript = True
本範例會檢查選取的文字是否為下標格式。
If Selection.Type = wdSelectionNormal Then
mySel = Selection.Font.Subscript
If mySel = wdUndefined Or mySel = True Then
MsgBox "Subscript text exists in the selection."
Else
MsgBox "No subscript text in the selection."
End If
Else
MsgBox "You need to select some text."
End If
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。