Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlSrcSetParser

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

Enumerates a srcset value while preserving candidate descriptors.

Parameters

srcSet System.String? requiredposition: 0
public static IEnumerable<HtmlSrcSetCandidate> Enumerate(String? srcSet, 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.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, 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.Int32? requiredposition: 1