Table of Contents

Interface IMediaList

Namespace
AngleSharp.Css.Dom
Assembly
AngleSharp.dll

A collection of media queries.

[DomName("MediaList")]
public interface IMediaList : IEnumerable<ICssMedium>, IEnumerable, IStyleFormattable
Inherited Members
Extension Methods

Properties

this[int]

Gets the medium item at the specified index.

[DomAccessor(Accessors.Getter)]
[DomName("item")]
string this[int index] { get; }

Parameters

index int

Index into the collection.

Property Value

string

The medium at the index-th position in the MediaList, or null if that is not a valid index.

Length

Gets the number of media in the list.

[DomName("length")]
int Length { get; }

Property Value

int

MediaText

Gets or sets the parsable textual representation of the media list. This is a comma-separated list of media.

[DomName("mediaText")]
string MediaText { get; set; }

Property Value

string

Methods

Add(string)

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

[DomName("appendMedium")]
void Add(string medium)

Parameters

medium string

The new medium to add.

Remove(string)

Deletes the medium indicated from the list of media queries.

[DomName("removeMedium")]
void Remove(string medium)

Parameters

medium string

The medium to delete from the list.