Previous Document Next Document

Object Model Reference : Classes : S : StructAlignProperties : Properties : StructAlignProperties.RightIndent


StructAlignProperties.RightIndent

Property RightIndent As Double

Description

Member of StructAlignProperties

The RightIndent property returns or specifies the indentation for the left side of a paragraph. This value is measured in document units.

VBA example

The following VBA example indents the first line of the second paragraph of the selected paragraph by 1". It also indents the left and right margins of the selected paragraph by 0.5".

Sub Test()
 If ActiveShape Is Nothing Then Exit Sub
 If ActiveShape.Type = cdrTextShape Then
  If ActiveShape.Text.Type = cdrParagraphText Then
   With ActiveShape.Text.AlignPropertiesInRange(2, 1, cdrParagraphIndexing)
    .FirstLineIndent = 1
    .LeftIndent = 0.5
    .RightIndent = 0.5
   End With
  End If
 End If
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.