TCustomRVParaInfo.Options

<< Click to display table of contents >>

TCustomRVParaInfo.Options

Several options for paragraph

type

  TRVParaOption =

    (rvpaoNoWrap, rvpaoReadOnly,

      rvpaoStyleProtect, rvpaoDoNotWantReturns,

      rvpaoKeepLinesTogether, rvpaoKeepWithNext,

      rvpaoWidowOrphanControl);

  TRVParaOptions = set of TRVParaOption;

 

property Options: TRVParaOptions;

(Introduced in version 1.5 - 10)

Layout Options

Option

Meaning

rvpaoNoWrap

Disallows automatic word wrapping in paragraphs of this style.

If you use no-wrap paragraphs, it's recommended to add rvoClientTextWidth in RichView.Options

Editing and Protection Options:

Option

Meaning

rvpaoReadOnly

Disallows editing paragraphs of this style in TRichViewEdit.

This option does not protect from adding new paragraph when the user presses  Enter  at the beginning or at the end of  the paragraph.

This option does not protect this paragraph from deletion together with the larger selection.

rvpaoStyleProtect

If set, ApplyParaStyle, ApplyParaStyleTemplate, ApplyStyleTemplate cannot change style of paragraphs of this style.

This option does not protect from ApplyParaStyleConversion, but you can take it into account in OnParaStyleConversion event.

rvpaoDoNotWantReturns

If set,  Enter  key will be blocked if the caret is inside paragraph of this style.

Printing Options

Option

Meaning

rvpaoKeepLinesTogether

Paragraph of this style is printed on one page, if possible.

rvpaoKeepWithNext

Paragraph of this style is printed on the same page as the next paragraph, if possible. Additionally, this option works like rvpaoKeepLinesTogether

rvpaoWidowOrphanControl

Prevents page breaks after the first line and before the last line in paragraphs of this style.

Default value:

[]

See also:

TFontInfo.Protection;

TCustomRichView.WordWrap.

TRVTableRow.KeepTogether