TE Edit Control Java / HTML-JavaScript Help
Product page

SetTerBkColor

Set the background color for the text.

boolean SetTerBkColor(color,repaint)
boolean SetTerBkColorHtml(HtmlColor,repaint)

Color color;

String HtmlColor;

new background color.

The color value can be passed as a Color object, or an HTML color string such as red, "#ff0000".

boolean repaint;true to repaint the screen after this operation.

Description: If a text block is selected before this operation, the new background color is applicable for every character in the block. If a block is not highlighted, this function selects the new color for the next character input.

Return Value: This function returns true when successful.