# HtmlResponsiveImageSelectionOptions

Describes the deterministic media environment used to select one responsive image candidate.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`3b680b1b6fb1` with working tree changes

**Source**

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

**Modifiers**

sealed

Describes the deterministic media environment used to select one responsive image candidate.

## Inheritance

- object
- HtmlResponsiveImageSelectionOptions

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 1

- Method [HtmlResponsiveImageSelector.Select](/api/html/officeimo-html-htmlresponsiveimageselector/#method-select-string-string-string-officeimo-html-htmlresponsiveimageselectionoptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public HtmlResponsiveImageSelectionOptions()` [#](#constructor-ctor)

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

## 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?`

## Properties

`public double ViewportWidth { get; set; }` [#](#property-viewportwidth)

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

Viewport width in CSS pixels.

`public double ViewportHeight { get; set; }` [#](#property-viewportheight)

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

Viewport height in CSS pixels.

`public double DevicePixelRatio { get; set; }` [#](#property-devicepixelratio)

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

Target device-pixel density. The default is one device pixel per CSS pixel.

`public HtmlCssMediaContext MediaContext { get; set; }` [#](#property-mediacontext)

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

Media type used by conditions in the sizes list.

`public HtmlRenderMediaFeatures MediaFeatures { get; set; }` [#](#property-mediafeatures)

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

Deterministic device and user-preference values used by media conditions.

`public double DefaultFontSize { get; set; }` [#](#property-defaultfontsize)

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

Root and initial font size used to resolve relative lengths in sizes.

`public int? MaxCandidates { get; set; }` [#](#property-maxcandidates)

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

Optional cap applied while parsing source-set candidates.

`public int? MaxSizesCharacters { get; set; }` [#](#property-maxsizescharacters)

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

Optional character cap applied before parsing a sizes value.

<!-- PowerForge markdown artifact sha256:DCF8261F87228C4068CB10AC6571630FDF0AFA623C63478D07AB8C2D5C517884 -->
