pathsArray
A collection of sub-paths.
Example - accessing the paths field
<div id="surface" style="width: 250px; height: 250px;"></div>
<script>
    var draw = kendo.drawing;
    var multiPath = new draw.MultiPath()
        .moveTo(50, 50).lineTo(150, 50).lineTo(100, 100).close()
        .moveTo(100, 150).lineTo(200, 150).lineTo(150, 200).close();
    // Access the paths collection
    console.log("Number of sub-paths: " + multiPath.paths.length);
    
    // Modify individual paths
    if (multiPath.paths.length > 0) {
        multiPath.paths[0].stroke({ color: "red", width: 2 });
    }
    var surface = draw.Surface.create($("#surface"));
    surface.draw(multiPath);
</script>In this article