Sets the foreground color of the control which is the color of the document's text.

Introduced: X18.

<void> TXTextControl.setForeColor(<String> foreColor, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
foreColor Foreground color.
callback Optional. Is called when the operation completed.
errorCallback Optional. Is called when the operation failed with an error.