Northwoods.GoWeb Assembly > Northwoods.GoWeb Namespace > GoView Class : UpdateExtent Method |
'Declaration Public Overridable Sub UpdateExtent()
public virtual void UpdateExtent()
The behavior depends on the value of SheetStyle and perhaps on the size of the Sheet. When the SheetStyle is GoViewSheetStyle.GoViewSheetStyle.WholeSheet, the DocScale and DocPosition are set to have all of the Sheet be visible in the view. A SheetStyle of GoViewSheetStyle.SheetWidth causes the scale to be set so that the full width of the Sheet is visible. A SheetStyle of GoViewSheetStyle.SheetHeight causes the scale to be set so that the full height of the Sheet is visible. A SheetStyle of GoViewSheetStyle.Sheet does not cause the scale to be changed. Finally, when SheetStyle is GoViewSheetStyle.None, or when there is no Sheet, this method does nothing. The Sheet's GoObject.Bounds are needed to decide how to scroll and scale the view, but the Sheet need not be GoObject.Visible.
For all of the SheetStyle values other than GoViewSheetStyle.None, this method calls RescaleWithCenter to try to keep centered the document point that had been in the center of the view.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2