GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoSheet Class / UpdateBounds Method
typically this should be the value of GoView.PrintScale
In This Topic
    UpdateBounds Method
    In This Topic
    Call this method to update the bounds and the margins of this sheet when you want it to match the information in a PageSettings object.
    Syntax
    public virtual void UpdateBounds( 
       PageSettings ps,
       float viewscale
    )

    Parameters

    ps
    viewscale
    typically this should be the value of GoView.PrintScale
    Remarks
    This updates the Bounds, TopLeftMargin, and BottomRightMargin. If PageSettings.Landscape is true, the PaperSize.Width is used for the Paper height, and the PaperSize.Height is used for the page width, after accounting for the viewscale. It does not update any GoGrid properties. Note well that this method may raise exceptions when examining the PageSettings ps and other printer structures, for example when there is no printer installed.
    See Also