C# 클래스 Our.Umbraco.Picture.TypedPictureExtensions

파일 보기 프로젝트 열기: rasmuseeg/Our.Umbraco.Picture

공개 메소드들

메소드 설명
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