GetTextColor

Description

Obtains the color of selected text in a RichTextEdit control.

Applies to

RichTextEdit controls

Syntax

rtename.GetTextColor ( )

Returns

Long. Returns the long value that specifies the color of the currently selected text. If text of different colors is selected, GetTextColor returns the color of the first selected character. GetTextColor returns -1 if an error occurs.