Share via


TextRange.DropCap Property

Publisher Developer Reference

Returns a DropCap object that represents a dropped capital letter for the paragraphs in the specified text frame.

Syntax

expression.DropCap

expression   A variable that represents a TextRange object.

Return Value
DropCap

Example

This example applies a custom dropped capital that is three lines high and spans the first three characters of each paragraph in the specified text frame.

Visual Basic for Applications
  Sub SetDropCap()
    With ActiveDocument.Pages(1).Shapes(1).TextFrame.TextRange
        .DropCap.ApplyCustomDropCap FontName:="Snap ITC", _
            Bold:=True, Size:=3, Span:=3
        With .ParagraphFormat
            .SpaceBefore = 6
            .SpaceAfter = 6
        End With
    End With
End Sub

See Also