Description
Sets the font size for the current text or the selected text in a RichTextEdit control.
Applies to
RichTextEdit controls
Syntax
rtename.SetTextFontSize (integer fontsize)
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit control in which you want to set the font name |
fontsize |
An integer specifying the font size for the text |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. If any argument's value is null, returns null.
Examples
This example sets the font size of the selected text in RichTextEdit rte_1 to 8:
integer li_rtn li_rtn = rte_1.SetTextFontSize(8)
See also