Class
HtmlResponsiveImageSelector
OfficeIMO.Html
Selects one candidate from an HTML srcset and sizes pair without depending on a DOM provider.
Inheritance
- object
- HtmlResponsiveImageSelector
Methods
public static HtmlResponsiveImageSelection Select(string? srcSet, string? sizes, string? defaultSource, HtmlResponsiveImageSelectionOptions? options = null) #Selects one source using deterministic density preference. Width descriptors are normalized by the first matching supported sizes entry; an omitted or unsupported list falls back to 100vw.
Parameters
- srcSet string?
- Authored source-set value.
- sizes string?
- Optional source-size list.
- defaultSource string?
- Optional src fallback. It participates as 1x only for density sets without an authored 1x candidate.
- options OfficeIMO.Html.HtmlResponsiveImageSelectionOptions? = null
- Selection environment.
Returns
HtmlResponsiveImageSelection