Object Model Reference : Classes : S : StructAlignProperties : Properties : StructAlignProperties.Alignment |
Property Alignment As cdrAlignment
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.
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 |
Copyright 2013 Corel Corporation. All rights reserved.