Description
Sets the font name for the current text or the selected text in a RichTextEdit control.
Applies to
RichTextEdit controls
Syntax
rtename.SetTextFontName (string fontname)
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit control in which you want to set the font name |
fontname |
A string specifying the font name 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 name of the selected text in RichTextEdit rte_1 to Arial:
integer li_rtn li_rtn = rte_1.SetTextFontName("Arial")
See also