Search Results for

    Show / Hide Table of Contents
    View Source

    Class ImageCropperValue

    Represents a value of the image cropper value editor.

    Inheritance
    object
    TemporaryFileUploadValueBase
    Namespace: Umbraco.Cms.Core.PropertyEditors.ValueConverters
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class ImageCropperValue : TemporaryFileUploadValueBase, IHtmlEncodedString

    Constructors

    View Source

    ImageCropperValue()

    Declaration
    public ImageCropperValue()

    Properties

    View Source

    Crops

    Gets or sets the value crops.

    Declaration
    public IEnumerable<ImageCropperValue.ImageCropperCrop>? Crops { get; set; }
    Property Value
    Type Description
    IEnumerable<ImageCropperValue.ImageCropperCrop>
    View Source

    FocalPoint

    Gets or sets the value focal point.

    Declaration
    public ImageCropperValue.ImageCropperFocalPoint? FocalPoint { get; set; }
    Property Value
    Type Description
    ImageCropperValue.ImageCropperFocalPoint

    Methods

    View Source

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    View Source

    Equals(ImageCropperValue?)

    Declaration
    public bool Equals(ImageCropperValue? other)
    Parameters
    Type Name Description
    ImageCropperValue other
    Returns
    Type Description
    bool
    View Source

    GetCrop(string?)

    Gets a crop.

    Declaration
    public ImageCropperValue.ImageCropperCrop? GetCrop(string? alias)
    Parameters
    Type Name Description
    string alias
    Returns
    Type Description
    ImageCropperValue.ImageCropperCrop
    View Source

    GetCropBaseOptions(string?, ImageCropperCrop?, bool)

    Declaration
    public ImageUrlGenerationOptions GetCropBaseOptions(string? url, ImageCropperValue.ImageCropperCrop? crop, bool preferFocalPoint)
    Parameters
    Type Name Description
    string url
    ImageCropperValue.ImageCropperCrop crop
    bool preferFocalPoint
    Returns
    Type Description
    ImageUrlGenerationOptions
    View Source

    GetCropUrl(int, int, IImageUrlGenerator, string?)

    Gets the value image URL for a specific width and height.

    Declaration
    public string? GetCropUrl(int width, int height, IImageUrlGenerator imageUrlGenerator, string? cacheBusterValue = null)
    Parameters
    Type Name Description
    int width
    int height
    IImageUrlGenerator imageUrlGenerator
    string cacheBusterValue
    Returns
    Type Description
    string
    View Source

    GetCropUrl(string, IImageUrlGenerator, bool, bool, string?)

    Gets the value image URL for a specified crop.

    Declaration
    public string? GetCropUrl(string alias, IImageUrlGenerator imageUrlGenerator, bool useCropDimensions = true, bool useFocalPoint = false, string? cacheBusterValue = null)
    Parameters
    Type Name Description
    string alias
    IImageUrlGenerator imageUrlGenerator
    bool useCropDimensions
    bool useFocalPoint
    string cacheBusterValue
    Returns
    Type Description
    string
    View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    View Source

    HasCrop(string)

    Determines whether the value has a specified crop.

    Declaration
    public bool HasCrop(string alias)
    Parameters
    Type Name Description
    string alias
    Returns
    Type Description
    bool
    View Source

    HasCrops()

    Determines whether the value has crops.

    Declaration
    public bool HasCrops()
    Returns
    Type Description
    bool
    View Source

    HasFocalPoint()

    Determines whether the value has a focal point.

    Declaration
    public bool HasFocalPoint()
    Returns
    Type Description
    bool
    View Source

    HasImage()

    Determines whether the value has a source image.

    Declaration
    public bool HasImage()
    Returns
    Type Description
    bool
    View Source

    Merge(ImageCropperValue)

    Declaration
    public ImageCropperValue Merge(ImageCropperValue imageCropperValue)
    Parameters
    Type Name Description
    ImageCropperValue imageCropperValue
    Returns
    Type Description
    ImageCropperValue
    View Source

    ToHtmlString()

    Returns an HTML-encoded string.

    Declaration
    public string? ToHtmlString()
    Returns
    Type Description
    string

    An HTML-encoded string.

    View Source

    ToString()

    Declaration
    public override string? ToString()
    Returns
    Type Description
    string

    Operators

    View Source

    operator ==(ImageCropperValue?, ImageCropperValue?)

    Declaration
    public static bool operator ==(ImageCropperValue? left, ImageCropperValue? right)
    Parameters
    Type Name Description
    ImageCropperValue left
    ImageCropperValue right
    Returns
    Type Description
    bool
    View Source

    operator !=(ImageCropperValue?, ImageCropperValue?)

    Declaration
    public static bool operator !=(ImageCropperValue? left, ImageCropperValue? right)
    Parameters
    Type Name Description
    ImageCropperValue left
    ImageCropperValue right
    Returns
    Type Description
    bool
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX