TextAlignment

<< Click to Display Table of Contents >>

Navigation:  Text Functions >

TextAlignment

Previous pageReturn to chapter overviewNext page

Sets the text alignment

property integer VPE.TextAlignment

read / write; runtime only; also supported by TVPEObject

Possible Values:

ActiveX / VCL

Value

Enum

Comment

ALIGN_LEFT

0

Left

 

ALIGN_RIGHT

1

Right

 

ALIGN_CENTER

2

Center

 

ALIGN_JUSTIFIED

3

Justified

 

ALIGN_JUSTIFIED_AB

5

JustifiedAb

 

Default:

ALIGN_LEFT

Remarks:

ALIGN_JUSTIFIED_AB: Text will be aligned justified. In contrast to ALIGN_JUSTIFIED, which aligns the last line left aligned, the last line of the text will also be aligned justified - if it is not ending with a CR / LF character. This flag works only for plain text, not for RTF.