Skip to content

TextColor - DfBaseRichEdit

Sets or returns color of selected text

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Syntax

Property Integer TextColor
Access Type Syntax
Read Access: Get TextColor to IntegerVariable
Write Access: Set TextColor to IntegerVariable/Value

Description

Sets or returns the color of selected text of the control to specified color.

This property has no effect if control is not paged.

Sample

This sample changes the color of the selected text to yellow.

set TextColor to clYellow

Sample

This sample retrieves the color of the selected text to variable iTextColor.

integer iTextColor
get TextColor to iTextColor

Sample

This sample sets the color of the selected text to variable iColor.

Procedure SetTextColor integer iColor
    set TextColor to iColor
End_Procedure  // SetTextColor