SetTerCharStyle
Set or reset the character styles
bool SetTerCharStyle( styles, OnOff, repaint)
int styles; | Character style to set or reset: |
| BOLD: | Bold |
| ULINE: | Underline |
| ULINED: | Double Underline |
| ULINE_DOTTED | Dotted underline |
| ITALIC: | Italic |
| STRIKE: | Strikethrough |
| DOUBLE_STRIKE | Double strikethrough |
| SUPSCR: | Superscript |
| SUBSCR | Subscript |
| HIDDEN: | Hidden Text |
| PROTECT: | Protected Text |
| HLINK: | Hyperlink |
| CAPS: | All caps |
| SCAPS: | Small Caps |
To specify more than one styles, use the 'logical OR' (|) operator.
bool OnOff; | true to set the specified styles, false to reset the specified styles. |
bool repaint; | true to refresh the window after this operation |
Description: This function is used to set or reset the give character styles. If a text block is highlighted, this operation is applicable to all characters in the block. Otherwise only the current character is affected.
Return Value: This function returns true if successful.
Example:
toc.SetTerCharStyle(tc.BOLD,true,true); // turn-on the BOLD style