← Back to carmenta.com
Carmenta Engine SDK Documentation
×

NamedStyle.GetLocalizedDisplayName Method

Gets a localized version of the style display name in a specific language.

Thread safety: This property is not thread-safe.

GetLocalizedDisplayName(System.String language)

Gets a localized version of the style display name in a specific language.

Syntax

C#
public System.String GetLocalizedDisplayName (
    System.String language
)

Parameters

language
Type: System.String
The requested language.

Return Value

Type: System.String
The display name in the requested language or the default language.

Remarks

If no display name is available in the specified language, the value of the DisplayName property will be returned (which may still be an empty string).

Tip

To find out which languages are available in a loaded configuration, use Configuration.DefaultLanguage and Configuration.AdditionalLanguages. You can also check if a value is actually set for a specific language or if the default value would be returned, see HasLocalizedDisplayName.

Platforms

Windows, Linux, Android

By accessing the information on this site you accept our terms and conditions and privacy policy.
This site uses cookies to enhance your experience and provide additional functionality.

Accept