# HtmlResponsiveImageSelector

Selects one candidate from an HTML srcset and sizes pair without depending on a DOM provider.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`3b680b1b6fb1` with working tree changes

**Source**

[HtmlResponsiveImageSelection.cs:84](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html/Images/HtmlResponsiveImageSelection.cs#L84)

**Modifiers**

static

Selects one candidate from an HTML srcset and sizes pair without depending on a DOM provider.

## Inheritance

- object
- HtmlResponsiveImageSelector

Filter members 

Show inherited

## Methods

`public static HtmlResponsiveImageSelection Select(string? srcSet, string? sizes, string? defaultSource, HtmlResponsiveImageSelectionOptions? options = null)` [#](#method-select-string-string-string-officeimo-html-htmlresponsiveimageselectionoptions)

[HtmlResponsiveImageSelection.cs:84](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html/Images/HtmlResponsiveImageSelection.cs#L84)

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

Authored source-set value.

**sizes string? required**

Optional source-size list.

**defaultSource string? required**

Optional src fallback. It participates as 1x only for density sets without an authored 1x candidate.

**options OfficeIMO.Html.HtmlResponsiveImageSelectionOptions? = null optional**

Selection environment.

Returns

`HtmlResponsiveImageSelection`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:55B5871EA0EA6B99CE74877DE64C901B1DAA191A01C5BDCA15805633F370D62E -->
