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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to switch page display off

Thread ID:

Created:

Updated:

Platform:

Replies:

50849 Oct 20,2006 01:33 PM UTC Oct 23,2006 02:04 PM UTC WinForms 1
loading
Tags: Diagram
Administrator [Syncfusion]
Asked On October 20, 2006 01:33 PM UTC

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?

Administrator [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;