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

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

공개 메소드들

메소드 설명
Alt ( this picture, string alt ) : IPictureElement

Sets the alt attribute on the img element.

Attr ( this picture, string key, string value ) : IPictureElement

Adds the following attribute and value to picture element.

Attrs ( this picture, string>.Dictionary attrs ) : IPictureElement

Adds the following attributes and values to picture element.

Html ( this picture ) : IHtmlString

Convert to HtmlString

Picture ( this helper ) : IPictureElement

Creates an empty picture element.

RenderPicture ( this helper, IPictureElement picture ) : IHtmlString

Returns the html of picture element with sources and attributes.

Source ( this picture, string media ) : IPictureElement

Adds new source with specified media and srcsets.

Src ( this picture, string src ) : IPictureElement

You should leave this empty

Srcset ( this picture ) : IPictureElement

Add multiple sources in the srcset attribute on img element

비공개 메소드들

메소드 설명
RenderHere ( this picture ) : void

메소드 상세

Alt() 공개 정적인 메소드

Sets the alt attribute on the img element.
public static Alt ( this picture, string alt ) : IPictureElement
picture this
alt string
리턴 IPictureElement

Attr() 공개 정적인 메소드

Adds the following attribute and value to picture element.
public static Attr ( this picture, string key, string value ) : IPictureElement
picture this
key string
value string
리턴 IPictureElement

Attrs() 공개 정적인 메소드

Adds the following attributes and values to picture element.
public static Attrs ( this picture, string>.Dictionary attrs ) : IPictureElement
picture this
attrs string>.Dictionary
리턴 IPictureElement

Html() 공개 정적인 메소드

Convert to HtmlString
public static Html ( this picture ) : IHtmlString
picture this
리턴 IHtmlString

Picture() 공개 정적인 메소드

Creates an empty picture element.
public static Picture ( this helper ) : IPictureElement
helper this
리턴 IPictureElement

RenderPicture() 공개 정적인 메소드

Returns the html of picture element with sources and attributes.
public static RenderPicture ( this helper, IPictureElement picture ) : IHtmlString
helper this
picture IPictureElement
리턴 IHtmlString

Source() 공개 정적인 메소드

Adds new source with specified media and srcsets.
public static Source ( this picture, string media ) : IPictureElement
picture this
media string
리턴 IPictureElement

Src() 공개 정적인 메소드

You should leave this empty
public static Src ( this picture, string src ) : IPictureElement
picture this
src string
리턴 IPictureElement

Srcset() 공개 정적인 메소드

Add multiple sources in the srcset attribute on img element
public static Srcset ( this picture ) : IPictureElement
picture this
리턴 IPictureElement