Hi Piotr,
We can position the Layout of the diagram at top left position by using the LayoutHorizontalAlignment and LayoutVerticalAlignment property of DiagramModel. We have created the sample for your reference. In that sample we have set the LayoutHorizontalAlignment property to Left and LayoutVerticalAlignment property to Top, then the Layout will be positioned in top left position of the Layout Bounds. Likewise we can set 9 different position to Layout Horizontal & Vertical Alignment property. We have attached the image for the reference of 9 different position. In that image the black colored border is the Layout Bounds. For more information please refer the following sample and image.
Sample Link:
Image Link:
Please let us know if you have any concerns.
Regards,
Sudhakar.C
DiagramPosition-Forum103821_ce773502.zip