DS Server

Javascript: TXTextControl.getCultures Method

Method|Introduced in 24.0

Description

Returns the culture and the UI culture of the control. The UI culture affects the string resource language. The culture represents date and time string formats, for example.

Syntax

<CultureSettings> TXTextControl.getCultures()

Return Value

Returns an object of type CultureSettings.

Examples

The following example demonstrates TXTextControl.getCultures in a practical document-editing workflow. It returns the culture and the UI culture of the control. The UI culture affects the string resource language. The culture represents date and time string formats, for example.

TXTextControl.getCultures();