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

Clip

methods

Gets or sets the element clipping path. Inherited from Element.clip

Parameters:clipkendo.drawing.Path

The element clipping path.

Returns:kendo.drawing.Path

The current element clipping path.

<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("This text will be clipped", position, {
        font: "18px Arial"
    });

    var clipPath = draw.Path.fromRect(new geom.Rect([15, 15], [60, 20]));
    text.clip(clipPath);

    var surface = draw.Surface.create($("#surface"));
    surface.draw(text);
</script>
Not finding the help you need?
Contact Support