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.

In this article
Not finding the help you need? Improve this article