Class MediaWithCrops<T>
Represents a media item with local crops.
Namespace: Umbraco.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class MediaWithCrops<T> : MediaWithCrops, IPublishedContent, IPublishedElement where T : IPublishedContent
Type Parameters
Name | Description |
---|---|
T | The type of the media item. |
Constructors
View SourceMediaWithCrops(T, ImageCropperValue)
Initializes a new instance of the MediaWithCrops<T> class.
Declaration
public MediaWithCrops(T content, ImageCropperValue localCrops)
Parameters
Type | Name | Description |
---|---|---|
T | content | The content. |
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
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. |