IHTMLStyleElement::type Property

Retrieves the Cascading Style Sheets (CSS) language in which the style sheet is written.

Syntax


HRESULT IHTMLStyleElement::get_type(BSTR *p);HRESULT IHTMLStyleElement::put_type(BSTR v);

Parameters

p
Pointer to a variable of type BSTR that receives the CSS language of the style sheet.
v
BSTR that specifies the CSS language of the style sheet.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The property can be any string, including an empty string. Valid style sheets for Microsoft Internet Explorer 4.0 and greater are set to "text/css".

Community Additions

Show: