會傳回或設定 Long ,表示的高格式化首字放大字母的行數。 讀取/寫入。
語法
運算式。大小
表達 代表 DropCap 物件的變數。
範例
本範例會針對五行高的指定文字範圍,格式化首字放大字母。
Sub RaisedDropCap()
Dim intCount As Integer
With ActiveDocument.Pages(1).Shapes _
.AddTextbox(Orientation:=pbTextOrientationHorizontal, _
Left:=100, Top:=100, Width:=100, Height:=100) _
.TextFrame.TextRange
For intCount = 1 To 10
.InsertAfter NewText:="This is a test. "
Next intCount
With .DropCap
.Size = 5
.LinesUp = 2
End With
End With
End Sub
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。