Share via


DropCap.Size Property

Publisher Developer Reference

Returns or sets a Long that represents the number of lines high to format a dropped capital letter. Read/write.

Syntax

expression.Size

expression   A variable that represents a DropCap object.

Example

This example formats a drop cap for the specified text range that is five lines high.

Visual Basic for Applications
  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

See Also