Table of contents
Collapse the table of content
Expand the table of content

DropCap.LinesUp Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Returns or sets a Long that represents the number of lines an initial dropped capital letter is raised above the line of text on which it exists. Read/write.


expression. LinesUp

_expression_A variable that represents a DropCap object.

Return Value



This example creates a custom dropped capital letter that is five lines high and raises it two lines above the line on which it exists.

Sub RaisedDropCap() 
 Dim intCount As Integer 
 With ActiveDocument.Pages(1).Shapes _ 
 .AddTextbox(Orientation:=pbTextOrientationHorizontal, _ 
 Left:=100, Top:=100, Width:=100, Height:=100) _ 
 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
© 2018 Microsoft