Bewerken

Delen via


DropCap.Span property (Publisher)

Returns or sets a Long that represents the number of letters included in the specified dropped capital letter. Read/write.

Syntax

expression.Span

expression A variable that represents a DropCap object.

Return value

Long

Example

This example creates a custom dropped capital letter that is five lines high, spans the first three characters of the paragraphs in the text range, and is raised one line above the first line.

Sub SetDropCapSpan() 
 With ActiveDocument.Pages(1).Shapes(1) _ 
 .TextFrame.TextRange.DropCap 
 .Size = 5 
 .Span = 3 
 .LinesUp = 1 
 End With 
End Sub

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.