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
ResponsiveImageThe ResponsiveImage.
Returns
ToImgMarkup(ResponsiveImage?)
Returns img
markup with srcset
and sizes
.
public static string ToImgMarkup(this ResponsiveImage? responsiveImage)
Parameters
responsiveImage
ResponsiveImageThe ResponsiveImage.
Returns
ToSizesSetAttribute(ResponsiveImage?)
Reduces Sizes to the sizes
attribute.
public static string ToSizesSetAttribute(this ResponsiveImage? responsiveImage)
Parameters
responsiveImage
ResponsiveImageThe ResponsiveImage.
Returns
ToSrcSetAttribute(ResponsiveImage?)
Reduces Candidates to the srcset
attribute.
public static string ToSrcSetAttribute(this ResponsiveImage? responsiveImage)
Parameters
responsiveImage
ResponsiveImageThe ResponsiveImage.