Class SourceSet
- Namespace
- AngleSharp.Html
- Assembly
- AngleSharp.dll
Represents a useful helper for dealing with source sets.
public sealed class SourceSet
- Inheritance
-
SourceSet
- Inherited Members
- Extension Methods
Constructors
SourceSet()
public SourceSet()
Methods
GetCandidates(string?, string?)
Gets the promising candidates from the given srcset using the provided sizes.
public IEnumerable<string> GetCandidates(string? srcset, string? sizes)
Parameters
Returns
- IEnumerable<string>
An iterator of the different URLs yielding matching images.
Parse(string)
Parses the given srcset attribute into an enumeration of candidates.
public static IEnumerable<SourceSet.ImageCandidate> Parse(string srcset)
Parameters
srcset
stringThe value of the srcset attribute.
Returns
- IEnumerable<SourceSet.ImageCandidate>
The iterator yielding the various candidates.