LanguageFontGroup(String) Constructor

Definition

Creates a LanguageFontGroup object for a given language or script.

public:
 LanguageFontGroup(Platform::String ^ languageTag);
 LanguageFontGroup(winrt::hstring const& languageTag);
public LanguageFontGroup(string languageTag);
function LanguageFontGroup(languageTag)
Public Sub New (languageTag As String)

Parameters

languageTag
String

Platform::String

winrt::hstring

A BCP-47 language tag, or an ISO 15924 script identifier.

Remarks

The languageTag parameter can be any valid BCP-47 language tag, such as "en", "de-CH", or "zh-Hans". The only limitations are that the language tag must include an explicit script subtag or be for a language for which the script is implicitly known. (For instance, "en" is assumed to imply Latin script.) Moreover, the script must be one that Windows supports.

The languageTag parameter can also be a valid ISO 15924 script identifier, such as "Latn", "Cyrl", or "Deva". The only limitation is that the script must be one that Windows supports.

Note

If your app passes language tags used in this class to any National Language Support functions, it must first convert the tags by calling ResolveLocaleName.

Applies to

See also