Share via


IXRTextElement::GetLanguage (Compact 2013)

3/28/2014

This method retrieves the language of the content within an IXRTextElement element.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetLanguage(
    __out BSTR* pLanguage
) = 0;

Parameters

  • pLanguage
    [out] Pointer to a string that represents the language of the content within the text element.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The pLanguage parameter is generally equivalent to the XML-defined attribute xml:lang. The string formats follow the RFC 3066/ISO 639-1 standards. For example, U.S. English is "en-US". For more information about the values and formats, see National/Regional Language Support (NLS) Catalog Items and Sysgen Variables.

.NET Framework Equivalent

System.Windows.Documents.TextElement.Language

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTextElement