Class
HtmlSrcSetParser
OfficeIMO.Html
Parses HTML srcset attributes into URL and descriptor candidates.
Inheritance
- object
- HtmlSrcSetParser
Methods
Enumerate 2 overloads
public static IEnumerable<HtmlSrcSetCandidate> Enumerate(string? srcSet) #Enumerates a srcset value while preserving candidate descriptors.
Parameters
- srcSet string?
Returns
IEnumerable<HtmlSrcSetCandidate>public static IEnumerable<HtmlSrcSetCandidate> Enumerate(string? srcSet, int? maxCandidates) #Enumerates a srcset value while preserving candidate descriptors, stopping after the requested number of candidates.
Parameters
- srcSet string?
- maxCandidates int?
Returns
IEnumerable<HtmlSrcSetCandidate>Parse 2 overloads
public static IReadOnlyList<HtmlSrcSetCandidate> Parse(string? srcSet) #Parses a srcset value while preserving candidate descriptors.
Parameters
- srcSet string?
Returns
IReadOnlyList<HtmlSrcSetCandidate>public static IReadOnlyList<HtmlSrcSetCandidate> Parse(string? srcSet, int? maxCandidates) #Parses a srcset value while preserving candidate descriptors, stopping after the requested number of candidates.
Parameters
- srcSet string?
- maxCandidates int?
Returns
IReadOnlyList<HtmlSrcSetCandidate>