Search Results for

    Show / Hide Table of Contents
    View Source

    Class MediaWithCrops<T>

    Represents a media item with local crops.

    Inheritance
    System.Object
    PublishedContentWrapped
    MediaWithCrops
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Infrastructure.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 Source

    MediaWithCrops(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 Source

    Content

    Gets the media item.

    Declaration
    public T Content { get; }
    Property Value
    Type Description
    T

    The media item.

    Operators

    View Source

    Implicit(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.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • MediaWithCrops(T, IPublishedValueFallback, ImageCropperValue)
    • Properties
      • Content
    • Operators
      • Implicit(MediaWithCrops<T> to T)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX