alignContent String (default: "start")

Specifies the alignment of the content. The supported values are:

  • "start" - aligns the content to the rectangle origin.
  • "center" - aligns the content to the rectangle center.
  • "end" - aligns the content to the rectangle end.


<div id="surface" style="height: 300px;"></div>
  var draw = kendo.drawing;
  var Rect = kendo.geometry.Rect;
  var Path = draw.Path;
  var rect = new Rect([200, 0], [200, 300]);
  var pathRect = new Rect([0, 0], [100, 100]);
  var layout = new draw.Layout(rect, {
        alignContent: "center"

  var pathA = Path.fromRect(pathRect);
  var pathB = Path.fromRect(pathRect);
  var pathC = Path.fromRect(pathRect);

  layout.append(pathA, pathB, pathC);

  var surface = draw.Surface.create($("#surface"));
In this article
Not finding the help you need? Improve this article