Class Language
Inheritance
System.Object
Language
Implements
System.ICloneable
System.Runtime.Serialization.IDeserializationCallback
Assembly: Sdl.Core.Globalization.dll
Syntax
public class Language : LanguageBase, ICloneable, IDeserializationCallback
Constructors
Language()
Declaration
Language(CultureInfo)
Declaration
[Obsolete("Use GetLanguageAsync")]
public Language(CultureInfo cultureInfo)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
cultureInfo |
|
Language(String)
Declaration
public Language(string isoAbbreviation)
Parameters
Type |
Name |
Description |
System.String |
isoAbbreviation |
|
Properties
CultureInfo
Declaration
public CultureInfo CultureInfo { get; }
Property Value
Type |
Description |
System.Globalization.CultureInfo |
|
DefaultSpecificCulture
Declaration
[Obsolete("Obsolete, use DefaultSpecificLanguage")]
public Language DefaultSpecificCulture { get; set; }
Property Value
DefaultSpecificCultureCode
Declaration
[Obsolete("Obsolete, use DefaultSpecificLanguageCode")]
public string DefaultSpecificCultureCode { get; set; }
Property Value
Type |
Description |
System.String |
|
DefaultSpecificLanguage
Declaration
public Language DefaultSpecificLanguage { get; set; }
Property Value
DisplayName
Declaration
public string DisplayName { get; }
Property Value
Type |
Description |
System.String |
|
Image
Declaration
[Obsolete("Obsolete, use GetFlagImage")]
public Image Image { get; }
Property Value
Type |
Description |
System.Drawing.Image |
|
IsSupported
Declaration
public bool IsSupported { get; }
Property Value
Type |
Description |
System.Boolean |
|
LdmlData
Declaration
public string LdmlData { get; }
Property Value
Type |
Description |
System.String |
|
ParentIsoCode
Declaration
[Obsolete("Obsolete, use ParentLanguageCode")]
public string ParentIsoCode { get; set; }
Property Value
Type |
Description |
System.String |
|
ParentLanguage
Declaration
public Language ParentLanguage { get; }
Property Value
RegionalVariants
Declaration
public IList<Language> RegionalVariants { get; }
Property Value
Type |
Description |
System.Collections.Generic.IList<Language> |
|
Methods
Clone()
Declaration
Returns
Type |
Description |
System.Object |
|
GetAlternativeLanguageCodes(String)
Declaration
[Obsolete("Obsolete, use LanguageRegistryApi.GetAlternativeLanguageCodes")]
public string[] GetAlternativeLanguageCodes(string productId)
Parameters
Type |
Name |
Description |
System.String |
productId |
|
Returns
Type |
Description |
System.String[] |
|
Declaration
public string GetDisplayName(LanguageFormat languageFormat, bool includeCountry)
Parameters
Type |
Name |
Description |
Sdl.Core.Globalization.LanguageFormat |
languageFormat |
|
System.Boolean |
includeCountry |
|
Returns
Type |
Description |
System.String |
|
GetFlagImage(Boolean, Single, Int32)
Declaration
public Image GetFlagImage(bool useFlag = true, float scaleFactor = 1F, int baseSize = 24)
Parameters
Type |
Name |
Description |
System.Boolean |
useFlag |
|
System.Single |
scaleFactor |
|
System.Int32 |
baseSize |
|
Returns
Type |
Description |
System.Drawing.Image |
|
GetImage(Boolean)
Declaration
[Obsolete("Obsolete, use GetFlagImage")]
public Image GetImage(bool useFlag)
Parameters
Type |
Name |
Description |
System.Boolean |
useFlag |
|
Returns
Type |
Description |
System.Drawing.Image |
|
OnDeserialization(Object)
Declaration
public void OnDeserialization(object sender)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
ToLanguage(LanguageBase)
Declaration
public static Language ToLanguage(LanguageBase l)
Parameters
Type |
Name |
Description |
Sdl.Core.Globalization.LanguageBase |
l |
|
Returns
Implements
System.ICloneable
System.Runtime.Serialization.IDeserializationCallback