Skip to content

TextBackColor - DfBaseRichEdit

Sets or returns background color of selected text

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

Syntax

Property integer TextBackColor
Access Type Syntax
Read Access: Get TextBackColor to integerVariable
Write Access: Set TextBackColor to integerVariable/Value

Description

Sets or returns the background 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 background color of the selected text to yellow.

set TextBackColor to clYellow

Sample

This sample returns the background color of the selected text to variable iBackColor.

integer iBackColor
get TextBackColor to iBackColor

Sample

This sample sets the background color of the selected text to variable iBackColor.

Procedure SetTextBackColor integer iBackColor
    set TextBackColor to iBackColor
End_Procedure  // SetTextBackColor