TRVStyle.LineWrapMode

<< Click to display table of contents >>

TRVStyle.LineWrapMode

Specifies how text lines are wrapped.

type

  TRVLineWrapMode = (rvWrapAnywhere, rvWrapSimple, rvWrapNormal);

property LineWrapMode: TRVLineWrapMode

(introduced in version 13)

Value

Line wrapping algorithm

rvWrapAnywhere

Line break can occur in any place of text

rvWrapSimple

Line breaks inside text items are added using line breaking rules.

Line breaks between text items can be added between any text items.

rvWrapNormal

Line breaks both inside and between text items are added using line breaking rules.

Line breaking rules are different for ANSI and Unicode text items.

For ANSI text, line breaks occur only on space characters.

For Unicode text, line breaks are added using advanced rules. For example, in the string '( a )( b )' the only possible line break is between ')' and '('.

rvWrapAnywhere is a special mode.

rvWrapSimple was used in TRichView versions prior to 13. It is faster than rvWrapNormal.

rvWrapNormal is the default and recommended value.

Example

LineWrapMode

If MainRVStyle is assigned, this property provides access to the corresponding property of MainRVStyle.

Default value:

rvWrapNormal