User Tools

Site Tools

Navigation:  Templates > Guide to all Templates > Additional Libraries and Templates > Rich Text Template Support - Overview >====== FontStyleRTF code template ====== Previous pageReturn to chapter overviewNext page


This template (and its associated code templates) has been deprecated, and is now replaced by the RTF Text Control template.

The FontStyleRTF code template is used to set the current font style. The style of a font represents the strike weight and style of the font. This template calls the ChangeFontStyle method. The parameter passed to this method represents the new font style.


ChangeFontStyle( FontStyle )

Example method calls:

oRTF_RTFTextBox.ChangeFontStyle( FONT:Italic ) !Font Style

oRTF_RTFTextBox.ChangeFontStyle( loc:fontstyle ) !Variable Font Style

Template Prompts:

Associated RTF control

Select the RTF control from the drop-down list. All controls on the Window are included in the list. This field in required.

Font style or variable

Specify the font style to use. A string or variable may be used. To use a variable, precede it with an exclamation point (!).

fontstylertf_code_template.htm.txt · Last modified: 2021/04/15 15:57 (external edit)