Table of Contents

Interface IResponsivePicture

Namespace
ToSic.Sxc.Images
Assembly
ToSic.Sxc.dll

A object which contains everything to create HTML for responsive picture tags with optimal srcset offering all the sizes you may need

Will generate a responsive <picture> tag with all the <source> and <img> tags necessary so the browser can get the best image for the current display.

Tip

We suggest you read the Image Guide for maximum power!

📔 Images Guide (Best Practices & Code)

[PublicApi]
public interface IResponsivePicture : IResponsiveImage
Inherited Members

Remarks

History: Released 2sxc 13.10

Properties

Picture

The picture tag with everything automatically included. See also the RazorBlade Picture docs

Picture Picture { get; }

Property Value

Picture

Sources

The source tags as they were auto-generated, in case you want to build the picture tag manually. Contains many source tags - see RazorBlade Source docs

TagList Sources { get; }

Property Value

TagList