Resize GoObject locations based on resizing window


I have added some GoObjects in GoView.Document
All are visible properly.
But when i maximize the main window, then all are displayed not relevant to current window.
How can i transform points based on main window size ?
Please help me out?

I think you want to “scroll” the view so that those document objects appear where you want them to be. This is a matter of setting GoView.DocPosition.

I don’t know what you want to do, but if you want to center those objects in the view, you can do something like:

  RectangleF r = goView1.ComputeDocumentBounds();  // figure out how big the occupied area of the document really is
  goView1.SheetStyle == GoViewSheetStyle.Sheet;  // allow scrolling beyond end of document bounds
  goView1.DocExtentCenter = new PointF(r.X+r.Width/2, r.Y+r.Height/2);  // recenter the view at the document's center