rvico TRichView Reference | TRVStyle | TCustomRVParaInfo

TCustomRVParaInfo.Alignment, LastLineAlignment

Top  Previous  Next

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.

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 2013 uses the following combinations:

rvaJustify + rvllaDefault

rvaDistribute + rvllaJustify

Default value:

Alignment: rvaLeft

LastLineAlignment: rvllaDefault


TRichView © trichview.com