Javascript: RulerBarViewGeneratorColors.getForeColor Method
Description
Gets the color used for the numbers of the ruler.
Syntax
<void> RulerBarViewGeneratorColors.getForeColor(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the color value. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates RulerBarViewGeneratorColors.getForeColor in a practical document-editing workflow. It gets the color used for the numbers of the ruler.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectForeColor(rulerBarViewGeneratorColors) {
rulerBarViewGeneratorColors.getForeColor(
function(result) {
console.log("get fore color result:", result);
},
onTxError
);
}