Search Results for

    Show / Hide Table of Contents
    View Source

    Class MediaWithCrops

    Represents a media item with local crops.

    Inheritance
    System.Object
    PublishedContentWrapped
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class MediaWithCrops : PublishedContentWrapped, IPublishedContent, IPublishedElement

    Constructors

    View Source

    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

    View Source

    Content

    Gets the content/media item.

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

    The content/media item.

    View Source

    LocalCrops

    Gets the local crops.

    Declaration
    public ImageCropperValue LocalCrops { get; }
    Property Value
    Type Description
    ImageCropperValue

    The local crops.

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