Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlResponsiveImageSelectionOptions

Namespace OfficeIMO.Html
Assembly OfficeIMO.Html
Modifiers sealed

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

Inheritance

  • Object
  • HtmlResponsiveImageSelectionOptions

Usage

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

Accepted by parameters

Constructors

Properties

public Double ViewportWidth { get; set; } #

Viewport width in CSS pixels.

public Double ViewportHeight { get; set; } #

Viewport height in CSS pixels.

public Double DevicePixelRatio { get; set; } #

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

public HtmlCssMediaContext MediaContext { get; set; } #

Media type used by conditions in the sizes list.

public HtmlRenderMediaFeatures MediaFeatures { get; set; } #

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

public Double DefaultFontSize { get; set; } #

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

public Nullable<Int32> MaxCandidates { get; set; } #

Optional cap applied while parsing source-set candidates.

public Nullable<Int32> MaxSizesCharacters { get; set; } #

Optional character cap applied before parsing a sizes value.