Table of Contents

Class ResponsiveImageExtensions

Namespace
Songhay.Publications.Extensions
Assembly
Songhay.Publications.dll

Extensions of ResponsiveImage.

public static class ResponsiveImageExtensions
Inheritance
ResponsiveImageExtensions
Inherited Members

Methods

ToCssMediaAtRules(ResponsiveImage?)

Returns CSS @media At-rule blocks.

public static string ToCssMediaAtRules(this ResponsiveImage? responsiveImage)

Parameters

responsiveImage ResponsiveImage

The ResponsiveImage.

Returns

string

ToImgMarkup(ResponsiveImage?)

Returns img markup with srcset and sizes.

public static string ToImgMarkup(this ResponsiveImage? responsiveImage)

Parameters

responsiveImage ResponsiveImage

The ResponsiveImage.

Returns

string

ToSizesSetAttribute(ResponsiveImage?)

Reduces Sizes to the sizes attribute.

public static string ToSizesSetAttribute(this ResponsiveImage? responsiveImage)

Parameters

responsiveImage ResponsiveImage

The ResponsiveImage.

Returns

string

ToSrcSetAttribute(ResponsiveImage?)

Reduces Candidates to the srcset attribute.

public static string ToSrcSetAttribute(this ResponsiveImage? responsiveImage)

Parameters

responsiveImage ResponsiveImage

The ResponsiveImage.

Returns

string