Class MediaWithCrops
Represents a media item with local crops.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Models
Assembly: cs.temp.dll.dll
Syntax
public class MediaWithCrops : PublishedContentWrapped
Constructors
MediaWithCrops(IPublishedContent, IPublishedValueFallback, ImageCropperValue)
Initializes a new instance of the MediaWithCrops class.
Declaration
public MediaWithCrops(IPublishedContent content, IPublishedValueFallback publishedValueFallback, ImageCropperValue localCrops)
Parameters
Type | Name | Description |
---|---|---|
IPublishedContent | content | The content. |
IPublishedValueFallback | publishedValueFallback | The published value fallback. |
ImageCropperValue | localCrops | The local crops. |
Properties
Content
Gets the content/media item.
Declaration
public IPublishedContent Content { get; }
Property Value
Type | Description |
---|---|
IPublishedContent | The content/media item. |
LocalCrops
Gets the local crops.
Declaration
public ImageCropperValue LocalCrops { get; }
Property Value
Type | Description |
---|---|
ImageCropperValue | The local crops. |