Click to return to the Reusing Browser Technology home page    
IHTMLStyleSheet::get_impo...     IHTMLStyleSheet::get_owni...     IHTMLStyleSheet Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLStyleSheet::get_media Method


Receives the string that indicates which media this style applies to.

Syntax

HRESULT get_media( 
    BSTR *p 
);

Parameters

p
Address of a string variable that receives the media type.

Return Value

Returns S_OK if successful, or an error code otherwise.

Windows CE

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

IHTMLStyleSheet::put_media Method


Sets the string that indicates which media this style element applies to. For details, see the IHTMLLinkElement::put_media method for values.

Syntax

HRESULT put_media(
    BSTR v 
);

Parameters

v
String that specifies the media type for the IHTMLStyleSheet element.

Return Value

Returns S_OK if successful, or an error code otherwise.

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.