TX Text Control .NET Server

Javascript: TXTextControl.Proofing.getDictionaryList Method

Method|Introduced in 32.0

Description

Retrieves a list of the names of all dictionary files on the server.

Syntax

<void> TXTextControl.Proofing.getDictionaryList(<GetDictionaryListCallback> callback)

Parameters

ParameterDescription
callback

The callback function which is called as soon as the dictionary list has been received from the server.

Examples

The following example demonstrates TXTextControl.Proofing.getDictionaryList in a practical document-editing workflow. Retrieves a list of the names of all dictionary files on the server.

function inspectDictionaryList(proofing) {
    proofing.getDictionaryList(
        function(dictionaries) {
            if (!dictionaries) {
                console.warn("No dictionary info was returned.");
                return;
            }
            
            console.log("get dictionary list result:", dictionaries);
        }
    );
}