Click or drag to resize

LanguageToLocalCodeString Method

Gives language (local code) as text

Namespace:  SIC.OpenDocumentFormat.MSWord
Assembly:  SIC.OpenDocumentFormat (in SIC.OpenDocumentFormat.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public static string ToLocalCodeString(
	this Languages pLanguage
)

Parameters

pLanguage
Type: SIC.OpenDocumentFormat.MSWordLanguages
Language code

Return Value

Type: String
Language text code

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Languages. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
Locale ID (LCID) text: text value defined by Microsoft Windows that consists of a language ID and a local ID that identify a particular language.
Examples
An example using extension ToLocalCodeString
SIC.OpenDocumentFormat.MSWord.Languages lLanguage;
lLanguage = Languages.de_CH;
string lLocalText = lLanguage.ToLocalCodeString();

// value of lLocalText
// de-CH
See Also