SizeConstraint Structure |
Namespace: Kentico.Content.Web.Mvc
public struct SizeConstraint
The SizeConstraint type exposes the following members.
Name | Description | |
---|---|---|
Empty |
Gets a SizeConstraint structure that has width, height and maximum width or height of 0.
|
Name | Description | |
---|---|---|
HeightComponent |
Gets the desired image height, in pixels.
| |
IsEmpty |
Tests whether this structure has width, height and maximum width or height of 0.
| |
MaxWidthOrHeightComponent |
Gets the desired maximum image width or height.
| |
WidthComponent |
Gets the desired image width, in pixels.
|
Name | Description | |
---|---|---|
Equals |
Determines whether the specified object is a SizeConstraint structure with the same width, height and maximum width or height as this SizeConstraint structure.
(Overrides ValueTypeEquals(Object).) | |
GetHashCode |
Returns a hash code for this SizeConstraint structure.
(Overrides ValueTypeGetHashCode.) | |
Height |
Creates a new size constraint that makes the image resize to the specified height. This constraint maintains the aspect ratio. The resized image is never made larger than the original.
| |
MaxWidthOrHeight |
Creates a new size constraint that makes the image resize to the width and height that do not exceed the specified value. This constraint maintains the aspect ratio. The resized image is never made larger than the original.
| |
Size |
Creates a new size constraint that makes the image resize to the specified width and height. This constraint does not maintain the aspect ratio. The resized image is never made larger than the original.
| |
ToString |
Creates a human-readable string that represents this SizeConstraint structure.
(Overrides ValueTypeToString.) | |
Width |
Creates a new size constraint that makes the image resize to the specified width. This constraint maintains the aspect ratio. The resized image is never made larger than the original.
|
Name | Description | |
---|---|---|
Equality |
Determines whether two SizeConstraint structures are equal.
| |
Inequality |
Determines whether two SizeConstraint structures are different.
|