C# 클래스 Sdl.Web.Modules.MediaManager.Models.MediaManagerDistribution

상속: Sdl.Web.Common.Models.EclItem
파일 보기 프로젝트 열기: sdl/dxa-modules

Private Properties

프로퍼티 타입 설명
GetOptionalAttribute string

공개 메소드들

메소드 설명
GetDefaultView ( Localization localization ) : MvcData

Gets the default View.

This makes it possible possible to render "embedded" MediaManagerDistribution Models using the Html.DxaEntity method.

GetIconClass ( ) : string
ReadFromXhtmlElement ( XmlElement xhtmlElement ) : void

Read properties from XHTML element.

ToHtml ( string widthFactor, double aspect, string cssClass = null, int containerSize ) : string

Renders an HTML representation of the Media Manager Distribution.

This method is used by the IRichTextFragment.ToHtml() implementation and by the HtmlHelperExtensions.Media implementation.

비공개 메소드들

메소드 설명
GetOptionalAttribute ( XmlElement xmlElement, string name ) : string

메소드 상세

GetDefaultView() 공개 메소드

Gets the default View.
This makes it possible possible to render "embedded" MediaManagerDistribution Models using the Html.DxaEntity method.
public GetDefaultView ( Localization localization ) : MvcData
localization Localization The context Localization
리턴 Sdl.Web.Common.Models.MvcData

GetIconClass() 공개 메소드

public GetIconClass ( ) : string
리턴 string

ReadFromXhtmlElement() 공개 메소드

Read properties from XHTML element.
public ReadFromXhtmlElement ( XmlElement xhtmlElement ) : void
xhtmlElement System.Xml.XmlElement XHTML element
리턴 void

ToHtml() 공개 메소드

Renders an HTML representation of the Media Manager Distribution.
This method is used by the IRichTextFragment.ToHtml() implementation and by the HtmlHelperExtensions.Media implementation.
public ToHtml ( string widthFactor, double aspect, string cssClass = null, int containerSize ) : string
widthFactor string The factor to apply to the width - can be % (eg "100%") or absolute (eg "120").
aspect double The aspect ratio to apply.
cssClass string Optional CSS class name(s) to apply.
containerSize int The size (in grid column units) of the containing element.
리턴 string