TFontInfo.NextStyleNo

<< Click to display table of contents >>

TFontInfo.NextStyleNo

Defines the text style for following paragraphs.

property NextStyleNo: Integer;

This property may contain either an index in Style.TextStyles, or the value -1.

This property is used in RichViewEdit, only if UseStyleTemplates=False. When a user presses  Enter  key at the end of paragraph, and the current text has this style, a text in a new empty paragraph will be created using this property. If NextStyleNo=-1, a new paragraph will have the same text style as in the current paragraph.

If UseStyleTemplates=True, this property is ignored. See the the description NextId property of the paragraph's style template about defining text properties for new paragraphs.

Default value:

-1

See also

TParaInfo.NextParaNo.