rvico TRichView Reference | TRVStyle | TParaInfo

TParaInfo.DefStyleNo

Top  Previous  Next

Specifies the default text style for paragraphs of this style.

property DefStyleNo: Integer;

(introduced in version 1.8)

You can use the rvsDefStyle constant (= MaxInt, a large positive integer value) as a StyleNo parameter of AddNL and other methods for adding text.

It means using the paragraph's default text style, i.e. DefStyleNo property (or the 0-th style, if DefStyleNo=-1).

GetItemStyle method and CurTextStyleNo return a translated text style (they never return rvsDefStyle).

Use GetItem(i).StyleNo and ActualCurTextStyleNo to get the text style as is.

 

This is a "pilot" feature. Very probably, in future, links between text and paragraph styles will be implemented differently.

 

Default value:

-1


RichView © Sergey Tkachenko