We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How to switch page display off

I have a diagram which is very large - way to big to fit on paper.
SF diagram insists on displaying the current page size as white (with the grid) on a big gray area.
I've managed to switch the page boundary constraints off; but still can't figure how to stop it from showing the page.

I'd like it to just display one area of white (with the grid) filling the entire scrollable area.

Any ideas how to do this?

1 Reply

AD Administrator Syncfusion Team October 23, 2006 02:04 PM UTC

Hi Mulveja,

If your intention is to avoid the gray region from appearing than it can be done by adjusting the scroll region to the diagram's view.Kindly take a look at the Code Snippet below,

private void Form_Load(object sender, System.EventArgs e)
{
if (this.diagram.View != null)
{
System.Drawing.Size szScroll = this.diagram.View.VirtualSize;

this.diagram.HScrollBar.Minimum = 0;
this.diagram.HScrollBar.Maximum = (int)System.Math.Round((double) ((szScroll.Width-(this.diagram.Width+350))* this.diagram.ScrollGranularity) );

this.diagram.VScrollBar.Minimum = 0;

this.diagram.VScrollBar.Maximum = (int)System.Math.Round((double) ((szScroll.Height-(this.diagram.Height+310)) * this.diagram.ScrollGranularity));
}
}

I hope by the above code snippet would help you to meet your requirement.

Let me know if I you have any queries.

Thanks & Regards,
Ramya.

Loader.
Live Chat Icon For mobile
Up arrow icon