Class MediaWithCrops
Represents a media item with local crops.
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Infrastructure.dll
Syntax
public class MediaWithCrops : PublishedContentWrapped, IPublishedContent, IPublishedElementConstructors
View SourceMediaWithCrops(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
View SourceContent
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. |