AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.8.0" />

 MediaList

sealed class MediaList : IMediaList, IEnumerable<string>, IEnumerable
Represents a list of media elements.
public string this[int index] { get; }

Gets the medium item at the specified index.

public int Length { get; }

Gets the number of media in the list.

public string MediaText { get; set; }

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

public void Add(string newMedium)

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

public IEnumerator<string> GetEnumerator()

Returns an enumerator that iterates through the media in the list.

public void Remove(string oldMedium)

Deletes the medium indicated by oldMedium from the list.

public bool Validate(RenderDevice device)

Validates the list of contained media against the provided rendering device.