Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlSrcSetParser

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html
Source revision
be6c300e4ab1 with working tree changes
Modifiers
static

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? required

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? required
maxCandidates int? required

Returns

IEnumerable<HtmlSrcSetCandidate>
Parse 2 overloads
public static IReadOnlyList<HtmlSrcSetCandidate> Parse(string? srcSet) #

Parses a srcset value while preserving candidate descriptors.

Parameters

srcSet string? required

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? required
maxCandidates int? required

Returns

IReadOnlyList<HtmlSrcSetCandidate>