SetTerColor
Set text color
bool SetTerColor( color, repaint)
bool SetTerColorHtml( HtmlColor, repaint)
Color color; | new color to apply |
| string HtmlColor | Color specified in the html string format, such as "red", "#FFFFFF" |
bool repaint; | true to refresh the window after this operation |
Description: This function is used to apply the new color to the text. If a text block is highlighted, this operation is applicable to all characters in the block. Otherwise the new color is selected for the next character input.
Return Value: This function returns true if successful.
Example:
toc.SelectTerText(0,0,0,40,false); // select the first 40 characters of the first line.
toc.SetTerColor(Color.Green,true); // apply green color to the selected text