SetTextStyle

Description

Specifies the text formatting for selected text in a RichTextEdit control. You can make the text bold, underlined, italic, and struck out. You can also make it either a subscript or superscript.

Applies to

RichTextEdit controls

Syntax

rtename.SetTextStyle ( bold, underline, subscript, superscript, italic, 
	strikeout )

Returns

Integer. Returns 1 if it succeeds and -1 if an error occurs.