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.