C# Класс Sdl.Web.Modules.Core.Models.Download

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

Private Properties

Свойство Тип Описание

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

Метод Описание
ExtractSyndicationFeedItems ( Sdl.Web.Common.Configuration.Localization localization ) : IEnumerable

Extracts syndication feed items.

GetDefaultView ( Sdl.Web.Common.Configuration.Localization localization ) : MvcData

Gets the default View.

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

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

Renders an HTML representation of the Media Item.

This method is used by the IRichTextFragment.ToHtml() implementation in MediaItem and by the HtmlHelperExtensions.Media implementation. Both cases should be avoided, since HTML rendering should be done in View code rather than in Model code.

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

ExtractSyndicationFeedItems() публичный Метод

Extracts syndication feed items.
public ExtractSyndicationFeedItems ( Sdl.Web.Common.Configuration.Localization localization ) : IEnumerable
localization Sdl.Web.Common.Configuration.Localization The context .
Результат IEnumerable

GetDefaultView() публичный Метод

Gets the default View.
This makes it possible possible to render "embedded" Download Models using the Html.DxaEntity method.
public GetDefaultView ( Sdl.Web.Common.Configuration.Localization localization ) : MvcData
localization Sdl.Web.Common.Configuration.Localization The context Localization
Результат Sdl.Web.Common.Models.MvcData

ToHtml() публичный Метод

Renders an HTML representation of the Media Item.
This method is used by the IRichTextFragment.ToHtml() implementation in MediaItem and by the HtmlHelperExtensions.Media implementation. Both cases should be avoided, since HTML rendering should be done in View code rather than in Model code.
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