|
rvs*** Constants |
Top Previous Next |
|
There are three groups of rvs*** constants: ▪identifiers of types of RichView items; ▪indices in the collection of text styles (RVStyle.TextStyles) corresponding to the initial entries; ▪values used by TRichView internally when saving and loading RVF files (see RVF specification). Identifiers of Item TypesUse the first group of constants to compare with values returned by RichView.GetItemStyle or TRichViewEdit.CurItemStyle.
All these constants are negative so you can distinguish them from indices in the collection of text styles. See also: RichView item types. Indices in The Collection of Text StylesThe second group of constants is almost obsolete, because the status of these text styles is changed from "standard" (in older versions) to "initial". You can completely customize collections of text styles by removing initial items and adding new items. All these constants are defined in RVStyle unit.
It's still highly recommended to use the 0-th style as the default (normal) text. For example, this style is used as a default style in exported HTML files. There is a special constant rvsDefStyle.
This constant can be used as a StyleNo parameter for methods that add text in TRichView. When this value is specified instead of the index in the collection of text styles, the paragraph's default text style will be used. This is a "pilot" feature. Very probably, in future links between text and paragraph styles will be implemented differently. |