TPlusmemo.Alignment property
PlusMemo Help Send comments on this topic.
TPlusmemo.Alignment property

Glossary Item Box

 

Applies to

TPlusMemo, TDBPlusMemo

 

Declaration

property Alignment: TAlignment

 

Description

The Alignment property specifies how text is aligned within the component.  It is equivalent to the similarly named property of TMemo.

 

These are the possible values:

 

Value Meaning
taLeftJustify Align text to the left margin of the control
taCenter Center text horizontally in the control within the left and right margins
taRightJustify Align text to the right margin of the control
 

 

Note that the values taCenter and taRightJustify will make the text wrap to fit horizontally inside the window even if property WordWrap is False, as is the case with TMemo.  Also note that property Alignment has no effect if property Justified is True.

 

This property is available at design time and run time, with read and write access and a default of taLeftJustify.  When assigning a new value to Alignment that will change the wrapping status of the text, a text formatting operation will occur and will trigger OnProgress events at regular intervals.