Search Results for

    Show / Hide Table of Contents

    Class Language

    Inheritance
    System.Object
    Language
    Implements
    System.ICloneable
    System.Runtime.Serialization.IDeserializationCallback
    Namespace: Sdl.Core.Globalization
    Assembly: Sdl.Core.Globalization.dll
    Syntax
    public class Language : LanguageBase, ICloneable, IDeserializationCallback

    Constructors

    Language()

    Declaration
    public Language()

    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
    Type Description
    Language

    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
    Type Description
    Language

    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
    Type Description
    Language

    RegionalVariants

    Declaration
    public IList<Language> RegionalVariants { get; }
    Property Value
    Type Description
    System.Collections.Generic.IList<Language>

    Methods

    Clone()

    Declaration
    public object Clone()
    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[]

    GetDisplayName(LanguageFormat, Boolean)

    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
    Type Description
    Language

    Implements

    System.ICloneable
    System.Runtime.Serialization.IDeserializationCallback

    On this page

    • Constructors
      • Language()
      • Language(CultureInfo)
      • Language(String)
    • Properties
      • CultureInfo
      • DefaultSpecificCulture
      • DefaultSpecificCultureCode
      • DefaultSpecificLanguage
      • DisplayName
      • Image
      • IsSupported
      • LdmlData
      • ParentIsoCode
      • ParentLanguage
      • RegionalVariants
    • Methods
      • Clone()
      • GetAlternativeLanguageCodes(String)
      • GetDisplayName(LanguageFormat, Boolean)
      • GetFlagImage(Boolean, Single, Int32)
      • GetImage(Boolean)
      • OnDeserialization(Object)
      • ToLanguage(LanguageBase)
    • Implements
    Back to top Generated by DocFX