setX

Sets the x coordinate to a new value.

Parameters

value Number

The new x coordinate value.

Returns

kendo.geometry.Point The current Point instance.

Example

<script>
var geom = kendo.geometry;
var point = new geom.Point(10, 20);

console.log("Before setX:", point.toString()); // outputs: "10 20"
point.setX(50);
console.log("After setX:", point.toString()); // outputs: "50 20"
</script>
In this article
setX
Not finding the help you need?
Contact Support