GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / UpdateExtent Method
In This Topic
    UpdateExtent Method
    In This Topic
    This method is called when this GoView's Size (or Width or Height) is changed, to allow the view to scroll or rescale itself.
    Syntax
    public virtual void UpdateExtent()
    Remarks

    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.

    See Also