Diagram positioning

Is it possible to start drawing diagram from top left position and not to center the diagram? Which properties of diagram control should I change? Example images of diagram are in the attachment. First is showing what I'm getting now and the second one is showing what I want to achieve.


DiagramImages_65475908.rar

1 Reply

SC Sudhakar C Syncfusion Team June 5, 2012 11:34 AM UTC

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

Loader.
Up arrow icon