<< Click to display table of contents >> rvs*** Constants |
There are three groups of rvs*** constants:
▪identifiers of types of RichView items;
▪indexes 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).
Use the first group of constants to compare with values returned by RichView.GetItemStyle or TRichViewEdit.CurItemStyle.
Constant |
Value |
Item Type |
Unit |
---|---|---|---|
rvsBreak |
-1 |
break (horizontal line) |
RVStyle |
rvsPicture |
-3 |
RVStyle |
|
rvsHotspot |
-4 |
hotspot (picture from ImageList - hyperlink) |
RVStyle |
rvsComponent |
-5 |
RVStyle |
|
rvsBullet |
-6 |
bullet (picture from ImageList) |
RVStyle |
rvsHotPicture |
-10 |
hot picture (picture - hyperlink) |
RVStyle |
rvsListMarker |
-11 |
list marker (bullet or numbering of paragraphs) |
RVStyle |
rvsTab |
-12 |
RVStyle |
|
rvsTable |
-60 |
RVTable |
|
rvsLabel |
-200 |
label (non-text item looking like text) |
RVLabelItem |
rvsSequence |
-202 |
RVSeqItem |
|
rvsFootnote |
-203 |
RVNote |
|
rvsEndnote |
-204 |
RVNote |
|
rvsSidenote |
-206 |
RVSidenote |
|
rvsTextBox |
-207 |
RVSidenote |
|
rvsNoteReference |
-205 |
RVNote |
|
rvsPageNumber |
-208 |
RVFieldItems |
|
rvsPageCount |
-209 |
RVFieldItems |
|
rvsMathEquation |
-210 |
RVMathItem |
Item types included in Report Workshop:
Constant |
Value |
Item Type |
Unit |
---|---|---|---|
rvsReportTable |
-61 |
report table |
RVReportTable |
rvsShape |
-211 |
geometric shape |
RVReportShapeItem |
Types for demo items (in TRichView\Demos\Addins\)
Constant |
Value |
Item Type |
Unit |
---|---|---|---|
rvsBlendBitmap |
-50 |
semitransparent bitmap image |
RVBlendBitmap |
rvsHotBlendBitmap |
-51 |
hypertext semitransparent bitmap image |
RVBlendBitmap |
rvsChart |
-1001 |
TChart item |
ChartItem |
rvsCombo |
-201 |
label item showing combo box |
ComboItem |
All these constants are negative so you can distinguish them from indexes in the collection of text styles.
See also: TRichView item types.
The 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.
Constant |
Value |
Suggested Use |
---|---|---|
rvsNormal |
0 |
Normal text |
rvsHeading |
1 |
Heading 1 |
rvsSubheading |
2 |
Heading 2 |
rvsKeyword |
3 |
Keywords |
rvsJump1 |
4 |
Hypertext 1 |
rvsJump2 |
5 |
Hypertext 2 |
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.
Constant |
Value |
Meaning |
---|---|---|
rvsDefStyle |
MaxInt |
"Use default text style" (deprecated!) |
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 feature is deprecated, use StyleTemplates instead.
This value also has a special meaning in TRichView.OnReadField event.