getSize

Gets the rectangle size.

Example

<script>
var geom = kendo.geometry;
var rect = new geom.Rect([10, 20], [25, 35]);

// Get the size
var size = rect.getSize();

console.log("Width:", size.width); // 25
console.log("Height:", size.height); // 35
console.log("Same as rect.size:", size.equals(rect.size)); // true
</script>

Returns

kendo.geometry.Size The current rectangle Size.

In this article
getSize
Not finding the help you need?
Contact Support