Class ImageUrlGenerationOptions.FocalPointPosition
The focal point position, in whatever units the registered IImageUrlGenerator uses, typically a percentage of the total image from 0.0 to 1.0.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class ImageUrlGenerationOptions.FocalPointPosition
Constructors
View SourceFocalPointPosition(decimal, decimal)
Declaration
public FocalPointPosition(decimal left, decimal top)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | left | |
| decimal | top |
Properties
View SourceLeft
Declaration
public decimal Left { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
Top
Declaration
public decimal Top { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
Methods
View SourceEquals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Equals(FocalPointPosition?)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ImageUrlGenerationOptions.FocalPointPosition? other)
Parameters
| Type | Name | Description |
|---|---|---|
| ImageUrlGenerationOptions.FocalPointPosition | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |