API Reference

Class

HtmlSrcSetParser

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
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) #
Returns: IEnumerable<HtmlSrcSetCandidate>

Enumerates a srcset value while preserving candidate descriptors.

Parameters

srcSet System.String requiredposition: 0
public static IEnumerable<HtmlSrcSetCandidate> Enumerate(String srcSet, Nullable<Int32> maxCandidates) #
Returns: IEnumerable<HtmlSrcSetCandidate>

Enumerates a srcset value while preserving candidate descriptors, stopping after the requested number of candidates.

Parameters

srcSet System.String requiredposition: 0
maxCandidates System.Nullable{System.Int32} requiredposition: 1
Parse 2 overloads
public static IReadOnlyList<HtmlSrcSetCandidate> Parse(String srcSet) #
Returns: IReadOnlyList<HtmlSrcSetCandidate>

Parses a srcset value while preserving candidate descriptors.

Parameters

srcSet System.String requiredposition: 0
public static IReadOnlyList<HtmlSrcSetCandidate> Parse(String srcSet, Nullable<Int32> maxCandidates) #
Returns: IReadOnlyList<HtmlSrcSetCandidate>

Parses a srcset value while preserving candidate descriptors, stopping after the requested number of candidates.

Parameters

srcSet System.String requiredposition: 0
maxCandidates System.Nullable{System.Int32} requiredposition: 1