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
intIndex 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
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
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
stringThe new medium to add.
Remove(string)
Deletes the medium indicated from the list of media queries.
[DomName("removeMedium")]
void Remove(string medium)
Parameters
medium
stringThe medium to delete from the list.