Previous Document Next Document

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


StructAlignProperties.Alignment

Property Alignment As cdrAlignment

Description

Member of StructAlignProperties

The Alignment property returns or specifies the alignment (that is, justification) of a text object.

The Alignment property returns a value of cdrAlignment.

VBA example

The following VBA example creates a text object in the center of the page.

Sub Test()
 Dim s As Shape
 Dim x As Double, y As Double
 x = ActivePage.SizeWidth / 2
 y = ActivePage.SizeHeight / 2
 Set s = ActiveLayer.CreateArtisticText(x, y, "A Text String" & vbCr & _
  "With Two Lines")
 s.Text.AlignProperties.Alignment = cdrCenterAlignment
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.