C# Класс Sdl.Web.Modules.MediaManager.Models.MediaManagerDistribution

Наследование: Sdl.Web.Common.Models.EclItem
Показать файл Открыть проект

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