clone

Creates a new instance with the same width and height.

Returns

kendo.geometry.Size A new Size instance with the same dimensions.

Example

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

console.log(clonedSize.width); // logs 100
console.log(clonedSize.height); // logs 50
console.log(clonedSize === originalSize); // logs false (different instances)
console.log(clonedSize.equals(originalSize)); // logs true (same dimensions)
</script>
In this article
clone
Not finding the help you need?
Contact Support