Click or drag to resize
SizeConstraintWidth Method
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.

Namespace: Kentico.Content.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public static SizeConstraint Width(
	int width
)

Parameters

width
Type: SystemInt32
The width of the resized image.

Return Value

Type: SizeConstraint
The new size constraint that makes the image resize to the specified width.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionWidth is less than or equal to 0.
See Also