<< Click to Display Table of Contents >> SetRTFFont |
Modify the build-in RTF font table.
method void VPE.SetRTFFont(
long ID,
string Name
)
long ID
the entry ID
string Name
the name of the font that shall be assigned to the given entry-id
Remarks:
The current value of the CharSet property is also stored in the font table entry when calling this method.
VPE has build-in a predefined font table:
\f1 is predefined as "Arial"
\f2 is predefined as "Times New Roman"
Examples:
For example change \f1 with:
ActiveX / VCL:
Doc.CharSet = SYMBOL_CHARSET
Doc.SetRTFFont(1, "Wingdings")
.NET:
Doc.CharSet = CharSet.Symbol
Doc.SetRTFFont(1, "Wingdings")
Or you can add as many fonts to the table as you like, for example:
ActiveX / VCL:
Doc.CharSet = SYMBOL_CHARSET
Doc.SetRTFFont(3, "Wingdings")
.NET:
Doc.CharSet = CharSet.Symbol
Doc.SetRTFFont(1, "Wingdings")
"RTF - Rich Text Format" in the Programmer's Manual