TCustomRichViewEdit.ApplyParaStyle

<< Click to display table of contents >>

TCustomRichViewEdit.ApplyParaStyle

Applies the specified paragraph style.

procedure ApplyParaStyle(ParaStyleNo: Integer);

ParaStyleNo index in the collection of paragraph styles (Style.ParaStyles).

The method applies the paragraph style ParaStyleNo to the paragraph containing the caret and all the selected paragraphs.

If existing paragraphs are formatted with styles having rvpaoStyleProtect in their Options, this method does not change their styles.

Method type: editstyle editing-style.

If you want to implement commands like "change alignment", "increase indent" use ApplyParaStyleConversion instead.

See also properties:

CurParaStyleNo.

See also methods:

ApplyTextStyle;

ApplyParaStyleConversion.

See also:

TParaInfo.Options;

Paragraphs overview.