Edit this page

position

Gets or sets the position of the text upper left corner.

Example - change position

<div id="surface"></div>
<script>
    var draw = kendo.drawing;
    var geom = kendo.geometry;

    var position = new geom.Point(10, 10);
    var text = new draw.Text("Foo", position);

    var surface = draw.Surface.create($("#surface"));
    surface.draw(text);

    setTimeout(function() {
        text.position([20, 20]);
    }, 1000);
</script>

Parameters

value kendo.geometry.PointThe new position of the text upper left corner.

Returnskendo.geometry.Point The current position of the text upper left corner.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy