New to Kendo UI for jQueryStart a free 30-day trial

TopRight

methods

Gets the position of the top-right corner of the rectangle.

Returns:kendo.geometry.Point

The position of the top-right corner.

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

// Get top-right corner
var topRight = rect.topRight();

console.log("Top-right x:", topRight.x); // 40 (10 + 30)
console.log("Top-right y:", topRight.y); // 20
</script>
Not finding the help you need?
Contact Support