setHeight

Sets the height to a new value.

Parameters

value Number

The new height value.

Returns

kendo.geometry.Size The current Size instance.

Example

<script>
var geom = kendo.geometry;
var size = new geom.Size(100, 50);

size.setHeight(80);
console.log(size.height); // logs 80
console.log(size.getHeight()); // logs 80

// Method chaining with setWidth
var modifiedSize = size.setHeight(120).setWidth(250);
console.log(modifiedSize.width); // logs 250
console.log(modifiedSize.height); // logs 120
</script>
In this article
setHeight
Not finding the help you need?
Contact Support