DS Server

Javascript: FormattingStyle.getForeColor Method

Method|Introduced in 28.0

Description

Gets the style's color used to display the text.

Syntax

<void> FormattingStyle.getForeColor(<RequestStringCallback> callback)

Parameters

ParameterDescription
callback

Receives the style's color used to display the text.

Examples

The following example demonstrates FormattingStyle.getForeColor in a practical document-editing workflow. It gets the style's color used to display the text.

function inspectForeColor(formattingStyle) {
    formattingStyle.getForeColor(
        function(result) {
            console.log("get fore color result:", result);
        }
    );
}