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

ParagraphFormat.FirstLineIndent Property (Publisher)

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

Returns or sets a Variant that represents the amount of space (measured in points) to indent the first line in a paragraph. Read/write.

Syntax

expression. FirstLineIndent

_expression_A variable that represents a ParagraphFormat object.

Return Value

Variant

Example

This example creates a text box, fills it with text, and indents the first line of every paragraph a half inch.

Sub IndentFirstLines() 
 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 
 .ParagraphFormat.FirstLineIndent = InchesToPoints(0.5) 
 End With 
End Sub
© 2018 Microsoft