Export (0) Print
Expand All

IHTMLStyleElement::media Property

Gets or sets the media type.

Syntax


HRESULT IHTMLStyleElement::get_media(BSTR *p);HRESULT IHTMLStyleElement::put_media(BSTR v);

Parameters

p
Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
v
BSTR that specifies one of the values listed in Possible Values.

Possible Values

all Default. Applies to all devices.
print Output is intended for printed material and for on-screen documents viewed in Print Preview mode.
screen Output is intended for computer screens.
tv New for Windows Internet Explorer 9  Output is intended for television screens.
unknown New for Internet Explorer 9  Intended output is unknown.
aural New for Internet Explorer 9  Output is intended for speech synthesizers.
braille New for Internet Explorer 9  Output is intended for braille tactile feedback devices.
embossed New for Internet Explorer 9  Intended output is embossed.
handheld New for Internet Explorer 9  Output is intended for handheld devices.
projection New for Internet Explorer 9  Output is intended for projection devices.
tty New for Internet Explorer 9  Output is intended for TTY devices.

Return Value

Returns S_OK if successful, or an error value otherwise.

Community Additions

ADD
Show:
© 2014 Microsoft