Previous Document Next Document
TextRange.LeftIndent

Property LeftIndent As Double

Member of TextRange

The LeftIndent property returns or sets the amount that the text is indented from the left side of the frame. All lines except for the first line of a paragraph are indented.

The following code example sets the hanging indent of the paragraph to 0.5 inch:

Sub Test() 
 Dim d As Document 
 Dim s As Shape 
 Dim t As Text 
 Set d = CreateDocument 
 Set s = d.ActiveLayer.CreateParagraphText(3, 3, 5, 5, _ 
  "This is an example. This is an example. This is an " & _ 
  "example. This is an example. This is an example.") 
 Set t = s.Text 
 t.Story.LeftIndent = 0.5 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.