Click to return to the Reusing Browser Technology home page    
IHTMLElement::get_isTextE...     IHTMLElement::get_languag...     IHTMLElement Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLElement::get_lang Method


Retrieves the current language.

Syntax

HRESULT get_lang(
    BSTR *p
);

Parameters

p
Address of a string (BSTR) variable that receives an ISO standard language abbreviation of the current language.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

The parser can use this property to determine how to display language-specific choices for quotations, numbers, and so on.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

IHTMLElement::put_lang Method


Sets the language to use.

Syntax

HRESULT put_lang(
    BSTR v
);

Parameters

v
String that specifies an ISO standard language abbreviation to set.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

The parser can use this property to determine how to display language-specific choices for quotations, numbers, and so on.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.