Freigeben über


IHTMLCSSMediaList interface

This interface provides the abstraction of an ordered collection of media. An empty list is the same as a list that contains the medium "all". The items in the media list are accessible via an integral index, starting from 0.

Members

The IHTMLCSSMediaList interface inherits from the IDispatch interface. IHTMLCSSMediaList also has these types of members:

  • Methods
  • Properties

Methods

The IHTMLCSSMediaList interface has these methods.

Method Description
appendMedium

Adds a medium to the end of the current list. If the medium is already used, it is first removed.

deleteMedium

Deletes a medium from the current list.

item

Gets the medium at the position number that is indicated by an index in the current list.

 

Properties

The IHTMLCSSMediaList interface has these properties.

Property Description

length

Retrieves the number of properties that are explicitly set on the parent object.

mediaText

Sets or retrieves the parsable textual representation of the current media list.

 

Requirements

Minimum supported client

Windows Vista with SP1, Windows 7

Minimum supported server

Windows Server 2008 R2

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch