Class ImageCropDataSet
Inheritance
System.Object
System.Dynamic.DynamicObject
Namespace:System.Dynamic.ExpandoObject
Assembly:umbraco.dll
Syntax
[JsonConverter(typeof (NoTypeConverterJsonConverter<ImageCropDataSet>))]
[TypeConverter(typeof (ImageCropDataSetConverter))]
[DataContract(Name = "imageCropDataSet")]
public class ImageCropDataSet : CaseInsensitiveDynamicObject<ImageCropDataSet>, IDynamicMetaObjectProvider, IHtmlString, IEquatable<ImageCropDataSet>
Properties
Crops
Declaration
[DataMember(Name = "crops")]
public IEnumerable<ImageCropData> Crops { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<ImageCropData> |
|
FocalPoint
Declaration
[DataMember(Name = "focalPoint")]
public ImageCropFocalPoint FocalPoint { get; set; }
Property Value
Src
Declaration
[DataMember(Name = "src")]
public string Src { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
The object to compare with the current object.
|
Returns
Type |
Description |
System.Boolean |
true if the specified object is equal to the current object; otherwise, false.
|
Equals(ImageCropDataSet)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ImageCropDataSet other)
Parameters
Type |
Name |
Description |
ImageCropDataSet |
other |
An object to compare with this object.
|
Returns
Type |
Description |
System.Boolean |
true if the current object is equal to the other parameter; otherwise, false.
|
GetCropUrl(String, Boolean, Boolean, String)
Declaration
public string GetCropUrl(string alias, bool useCropDimensions = true, bool useFocalPoint = false, string cacheBusterValue = null)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
System.Boolean |
useCropDimensions |
|
System.Boolean |
useFocalPoint |
|
System.String |
cacheBusterValue |
|
Returns
Type |
Description |
System.String |
|
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
A hash code for the current object.
|
HasCrop(String)
Declaration
public bool HasCrop(string alias)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
Returns
Type |
Description |
System.Boolean |
|
HasFocalPoint()
Declaration
public bool HasFocalPoint()
Returns
Type |
Description |
System.Boolean |
|
HasImage()
Declaration
Returns
Type |
Description |
System.Boolean |
|
ToHtmlString()
Declaration
public string ToHtmlString()
Returns
Type |
Description |
System.String |
|
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
If there are crops defined, it will return the JSON value, otherwise it will just return the Src value
|
Operators
Equality(ImageCropDataSet, ImageCropDataSet)
Declaration
public static bool operator ==(ImageCropDataSet left, ImageCropDataSet right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(ImageCropDataSet, ImageCropDataSet)
Declaration
public static bool operator !=(ImageCropDataSet left, ImageCropDataSet right)
Parameters
Returns
Type |
Description |
System.Boolean |
|