Javascript: TextViewGeneratorColors.getDarkShadowColor Method
Description
Gets the display color for the shadow at the right and the bottom edge of the pages.
Syntax
<void> TextViewGeneratorColors.getDarkShadowColor(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the color for the shadow at the right and the bottom edge of the pages as parameter. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates TextViewGeneratorColors.getDarkShadowColor in a practical document-editing workflow. It gets the display color for the shadow at the right and the bottom edge of the pages.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.displayColors.getDarkShadowColor(
function(result) {
console.log("get dark shadow color result:", result);
},
onTxError
);