Interface IMediaList

Interface IMediaList

Namespace: Aspose.Html.Dom.Css
Assembly: Aspose.HTML.dll (25.2.0)

The MediaList interface provides the abstraction of an ordered collection of media, without defining or constraining how this collection is implemented. An empty list is the same as a list that contains the medium “all”.

[ComVisible(true)]
public interface IMediaList : IEnumerable<string>, IEnumerable

Implements

IEnumerable<string>, IEnumerable

Properties

Length

The number of media in the list. The range of valid media is 0 to length-1 inclusive.

long Length { get; }

Property Value

long

MediaText

The parsable textual representation of the media list. This is a comma-separated list of media.

string MediaText { get; }

Property Value

string

this[int]

Returns the indexth in the list. If index is greater than or equal to the number of media in the list, this returns null.

The media index.
string this[int index] { get; }

Property Value

string

Methods

AppendMedium(string)

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

void AppendMedium(string newMedium)

Parameters

newMedium string

The new medium.

DeleteMedium(string)

Deletes the medium indicated by oldMedium from the list.

void DeleteMedium(string oldMedium)

Parameters

oldMedium string

The old medium. </string>