API Reference
Class
HtmlResponsiveImageSelectionOptions
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
public HtmlResponsiveImageSelectionOptions() #Inherited Methods
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.