GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoDocument Class / ComputeBounds Method / ComputeBounds(IGoCollection,GoView) Method
May be null.
In This Topic
    ComputeBounds(IGoCollection,GoView) Method
    In This Topic
    Get the smallest rectangle that includes the bounds of all of the objects in a collection.
    Syntax
    public static RectangleF ComputeBounds( 
       IGoCollection coll,
       GoView view
    )

    Parameters

    coll
    view
    May be null.

    Return Value

    A RectangleF that encloses all of the objects in the collection, which might not include the (0, 0) origin point
    Remarks
    This method uses GoObject.ExpandPaintBounds to include areas beyond the immediate GoObject.Bounds, perhaps affected by the view. This ignores non-visible objects, by checking GoObject.CanView. If the view GoView.IsPrinting, this checks GoObject.CanPrint instead.
    See Also