Search Results for

    Show / Hide Table of Contents
    View Source

    Class ImageCropperValue.ImageCropperCropCoordinates

    Represents the coordinates and dimensions of a crop area defined by the image cropper.

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

    Constructors

    View Source

    ImageCropperCropCoordinates()

    Declaration
    public ImageCropperCropCoordinates()

    Properties

    View Source

    X1

    Gets or sets the X-coordinate of the top-left corner (X1) of the image crop rectangle.

    Declaration
    public decimal X1 { get; set; }
    Property Value
    Type Description
    decimal
    View Source

    X2

    Gets or sets the X2 coordinate, representing the right boundary of the image crop rectangle.

    Declaration
    public decimal X2 { get; set; }
    Property Value
    Type Description
    decimal
    View Source

    Y1

    Gets or sets the Y1 coordinate (top edge) of the image crop rectangle.

    Declaration
    public decimal Y1 { get; set; }
    Property Value
    Type Description
    decimal
    View Source

    Y2

    Gets or sets the Y2 coordinate, representing the bottom edge of the image crop rectangle.

    Declaration
    public decimal Y2 { get; set; }
    Property Value
    Type Description
    decimal

    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(ImageCropperCropCoordinates?)

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

    GetHashCode()

    Returns a hash code for this instance based on the crop coordinates.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code representing the current crop coordinates.

    Operators

    View Source

    operator ==(ImageCropperCropCoordinates?, ImageCropperCropCoordinates?)

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

    operator !=(ImageCropperCropCoordinates?, ImageCropperCropCoordinates?)

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