C# Класс Our.Umbraco.Picture.TypedPictureExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
Picture ( this content ) : TypedPictureElement

Creates a new picture from an IPublishedContent to manipulate.

Picture ( this helper, IPublishedContent content ) : TypedPictureElement

Creates a new picture from an IPublishedContent to manipulate.

Source ( this picture, string media, int width, int height = null ) : TypedPictureElement

Adds new source element with specified media, width and or height.

Srcset ( this picture, int width, int height = null ) : TypedPictureElement

Adds srcset to picture img elemet with specefied height and width.

Описание методов

Picture() публичный статический Метод

Creates a new picture from an IPublishedContent to manipulate.
public static Picture ( this content ) : TypedPictureElement
content this
Результат Our.Umbraco.Picture.Models.TypedPictureElement

Picture() публичный статический Метод

Creates a new picture from an IPublishedContent to manipulate.
public static Picture ( this helper, IPublishedContent content ) : TypedPictureElement
helper this
content IPublishedContent
Результат Our.Umbraco.Picture.Models.TypedPictureElement

Source() публичный статический Метод

Adds new source element with specified media, width and or height.
public static Source ( this picture, string media, int width, int height = null ) : TypedPictureElement
picture this
media string
width int
height int
Результат Our.Umbraco.Picture.Models.TypedPictureElement

Srcset() публичный статический Метод

Adds srcset to picture img elemet with specefied height and width.
public static Srcset ( this picture, int width, int height = null ) : TypedPictureElement
picture this
width int
height int
Результат Our.Umbraco.Picture.Models.TypedPictureElement