This project is read-only.

How to change size of the design surface ?

Feb 18, 2012 at 11:15 AM
Edited Feb 18, 2012 at 12:35 PM

Hi all,

Is there any way to change the size of the design surface? (A4, A2...)

May 26, 2013 at 6:39 AM
Edited May 26, 2013 at 7:49 AM
Hi

You can do it with SetSize method and Geometry enumerator class ;)
diagram1.Model.SetSize(Geometry.GetPaperSize(DiagramUnit.Pixel, Crainiate.Diagramming.Printing.PaperSizes.Iso.A4));
diagram1.Paging.PageSize = Geometry.GetPaperSize(DiagramUnit.Pixel, Crainiate.Diagramming.Printing.PaperSizes.Iso.A4);
Best Regards.
Oct 14, 2015 at 9:22 AM
You can also set it to fill the size of the control if creating large diagrams not designed for printing
// no page size
diagram1.Paging.Enabled = false;
// fill to use all available space
diagram1.Dock = DockStyle.Fill
// force it to move elements to any location in the diagram
diagram1.Controller.CheckBounds = false;