Gets the color used to display the selected text.
Introduced: X16.
<void> Selection.getForeColor(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])
Parameter | Description |
---|---|
callback | Is called with the color used to display the selected text. The color attribute is if available the color's name else the HEX value as a string. The property's default value is the HTML Color windowtext. The property returns its default value when the text selection contains multiple characters with mixed colors. |
error |
Optional. Is called when the operation failed with an error. |