Overloading Mechanism

<< Click to Display Table of Contents >>

Navigation:  Programming Techniques > RTF - Rich Text Format >

Overloading Mechanism

Previous pageReturn to chapter overviewNext page

Since VPE offers both, setting properties by code and immediately within the RTF text, VPE needs a mechanism to resolve possible conflicts. VPE does it as follows: each property specified in the RTF text overrides the same predefined setting done through code.

So the RTF text is overloading the predefined properties set through code. This is done separately for each object. The predefined settings are kept unchanged and are not influenced by settings specified inside of an RTF text.

Example:

If you set \f1 to "Arial" with SetRTFFont(1, "Arial") and in the RTF text is a font table which instructs VPE to use "Times New Roman" as \f1, VPE will use "Times New Roman" as \f1 for this single object only.