TX Text Control .NET Server

Javascript: TextViewGeneratorColors.getDarkShadowColor Method

Method|Introduced in 28.0

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

ParameterDescription
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
);