Class Language
Inheritance
System.Object
Language
Implements
System.ICloneable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.Core.Globalization.dll
Syntax
public class Language : ICloneable
Constructors
Language()
Declaration
Language(Language)
Declaration
protected Language(Language other)
Parameters
Language(CultureInfo)
Declaration
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; set; }
Property Value
Type |
Description |
System.Globalization.CultureInfo |
|
DefaultDisplaySettings
Declaration
public static LanguageDisplaySettings DefaultDisplaySettings { get; }
Property Value
DefaultSpecificCulture
Declaration
[Obsolete("This property is obsolete. Using DefaultSpecificLanguage recommended")]
public Language DefaultSpecificCulture { get; set; }
Property Value
DefaultSpecificCultureCode
Declaration
[Obsolete("This property is obsolete.Using DefaultSpecificLanguageCode recommended")]
public string DefaultSpecificCultureCode { get; set; }
Property Value
Type |
Description |
System.String |
|
DefaultSpecificLanguage
Declaration
public Language DefaultSpecificLanguage { get; }
Property Value
DefaultSpecificLanguageCode
Declaration
public string DefaultSpecificLanguageCode { get; set; }
Property Value
Type |
Description |
System.String |
|
Direction
Declaration
public string Direction { get; set; }
Property Value
Type |
Description |
System.String |
|
DisplayName
Declaration
public string DisplayName { get; }
Property Value
Type |
Description |
System.String |
|
EnglishName
Declaration
public string EnglishName { get; set; }
Property Value
Type |
Description |
System.String |
|
Image
Declaration
[Obsolete("This property is obsolete. Using GetFlagImage function recommended")]
public Image Image { get; }
Property Value
Type |
Description |
System.Drawing.Image |
|
IsNeutral
Declaration
public bool IsNeutral { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsoAbbreviation
Declaration
public string IsoAbbreviation { get; set; }
Property Value
Type |
Description |
System.String |
|
IsSupported
Declaration
public bool IsSupported { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsValid
Declaration
public bool IsValid { get; }
Property Value
Type |
Description |
System.Boolean |
|
LanguageCode
Declaration
public string LanguageCode { get; set; }
Property Value
Type |
Description |
System.String |
|
LdmlData
Declaration
public string LdmlData { get; }
Property Value
Type |
Description |
System.String |
|
ParentIsoCode
Declaration
[Obsolete("This property is obsolete. Using ParentLanguageCode recommended")]
public string ParentIsoCode { get; set; }
Property Value
Type |
Description |
System.String |
|
ParentLanguage
Declaration
public Language ParentLanguage { get; }
Property Value
ParentLanguageCode
Declaration
public string ParentLanguageCode { get; set; }
Property Value
Type |
Description |
System.String |
|
RegionalVariants
Declaration
public IList<Language> RegionalVariants { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IList<Language> |
|
SupportedProducts
Declaration
public Dictionary<Product, List<AlternativeLanguageCode>> SupportedProducts { get; set; }
Property Value
UseBlankAsSentenceSeparator
Declaration
public bool UseBlankAsSentenceSeparator { get; }
Property Value
Type |
Description |
System.Boolean |
|
UseBlankAsWordSeparator
Declaration
public bool UseBlankAsWordSeparator { get; }
Property Value
Type |
Description |
System.Boolean |
|
UsesCharacterCounts
Declaration
public bool UsesCharacterCounts { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Clone()
Declaration
Returns
Type |
Description |
System.Object |
|
Equals(Language, Language)
Declaration
public static bool Equals(Language language1, Language language2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Equals(String, String)
Declaration
public static bool Equals(string isoAbbreviation1, string isoAbbreviation2)
Parameters
Type |
Name |
Description |
System.String |
isoAbbreviation1 |
|
System.String |
isoAbbreviation2 |
|
Returns
Type |
Description |
System.Boolean |
|
GetAllLanguages()
Declaration
public static Language[] GetAllLanguages()
Returns
GetAlternativeLanguageCodes(String)
Declaration
[Obsolete("This function is obsolete.Using LanguageRegistryApi.GetAlternativeLanguageCodes recommended ")]
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 |
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 |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
GetImage(Boolean)
Declaration
[Obsolete("This function is obsolete. Using GetFlagImage function recommended")]
public Image GetImage(bool useFlag)
Parameters
Type |
Name |
Description |
System.Boolean |
useFlag |
|
Returns
Type |
Description |
System.Drawing.Image |
|
IsNullOrInvalid(Language)
Declaration
public static bool IsNullOrInvalid(Language language)
Parameters
Returns
Type |
Description |
System.Boolean |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Implements
System.ICloneable