Class MediaWithCrops<T>
Represents a media item with local crops.
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Infrastructure.dll
Syntax
public class MediaWithCrops<T> : MediaWithCrops, IPublishedContent, IPublishedElement where T : IPublishedContentType Parameters
| Name | Description | 
|---|---|
| T | The type of the media item. | 
Constructors
View SourceMediaWithCrops(T, IPublishedValueFallback, ImageCropperValue)
Initializes a new instance of the MediaWithCrops<T> class.
Declaration
public MediaWithCrops(T content, IPublishedValueFallback publishedValueFallback, ImageCropperValue localCrops)Parameters
| Type | Name | Description | 
|---|---|---|
| T | content | The content. | 
| IPublishedValueFallback | publishedValueFallback | The published value fallback. | 
| ImageCropperValue | localCrops | The local crops. | 
Properties
View SourceContent
Gets the media item.
Declaration
public T Content { get; }Property Value
| Type | Description | 
|---|---|
| T | The media item. | 
Operators
View SourceImplicit(MediaWithCrops<T> to T)
Performs an implicit conversion from MediaWithCrops<T> to T.
Declaration
public static implicit operator T(MediaWithCrops<T> mediaWithCrops)Parameters
| Type | Name | Description | 
|---|---|---|
| MediaWithCrops<T> | mediaWithCrops | The media with crops. | 
Returns
| Type | Description | 
|---|---|
| T | The result of the conversion. |