<< Click to display table of contents >> TCustomRVParaInfo.Alignment, LastLineAlignment |
Alignment of paragraph of this style.
type
TRVAlignment =
(rvaLeft, rvaRight, rvaCenter, rvaJustify, rvaDistribute);
TRVLastLineAlignment =
(rvllaDefault, rvllaLeft, rvllaRight, rvllaCenter, rvllaJustify);
property Alignment : TRVAlignment;
property LastLineAlignment: TRVLastLineAlignment;
Possible values of Alignment:
Value |
Meaning |
---|---|
rvaLeft |
The paragraph is aligned to the left side. |
rvaRight |
The paragraph is aligned to the right side. |
rvaCenter |
The paragraph is centered. |
rvaJustify |
All lines of the paragraph (except for the last line) are aligned to the both left and right sides by adding space between words (i.e. by increasing widths of space characters). The last line is aligned according to LastLineAlignment property. |
rvaDistribute* |
All lines of the paragraph (except for the last line) are aligned to the both left and right sides by adding space between all characters. The last line is aligned according to LastLineAlignment property. |
* this value is not supported in FireMonkey version (in FireMonkey, it works like rvaLeft).
LastLineAlignment is used if Alignment is equal to rvaJustify or rvaDistribute. It is applied to the last line of the paragraph (even if the paragraph has the only line). Additionally it is applied to lines that cannot be aligned to the both sides (for example, if a line contains only a single picture).
Possible values of LastLineAlignment:
Value |
Meaning |
---|---|
rvllaDefault |
The line is aligned to the left side if the paragraph is aligned from left to right, or to the right side otherwise. |
rvllaLeft |
The line is aligned to the left side. |
rvllaRight |
The line is aligned to the right side. |
rvllaCenter |
The line is centered. |
rvllaJustify |
The line is aligned according to Alignment property. |
Note: Microsoft Word uses the following combinations:
•rvaJustify + rvllaDefault
•rvaDistribute + rvllaJustify
Default value:
•Alignment: rvaLeft
•LastLineAlignment: rvllaDefault