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

IHTMLElement::get_className Method


Retrieves the value of the className property of the given object. The property is typically used to associate a particular style rule in a style sheet with the object.

Syntax

HRESULT get_className(
    BSTR *p
);

Parameters

p
Address of a string (BSTR) variable that receives the value of the property, which can be any valid string.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

By default, the value is equal to the string assigned to the className property of the given object, or is an empty string if the property is not explicitly assigned.

Windows CE

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

IHTMLElement::put_className Method


Sets the value of the className property of the object. The property is typically used to associate a particular style rule in a style sheet with the object.

Syntax

HRESULT put_className(
    BSTR v
);

Parameters

v
String (BSTR) that specifies the value of the attribute to set. It can be any valid string.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

By default, the property is equal to the string assigned to the className property of the given object, or is an empty string if the attribute is not explicitly assigned.

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.