GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / ExpandPaintBounds Method
A RectangleF in document coordinates.
The view in which the object is being painted. This may be null, if the particular view is not known.
In This Topic
    ExpandPaintBounds Method (GoObject)
    In This Topic
    Expand a bounding rectangle to better represent where this object is painted.
    Syntax
    public virtual RectangleF ExpandPaintBounds( 
       RectangleF rect,
       GoView view
    )

    Parameters

    rect
    A RectangleF in document coordinates.
    view
    The view in which the object is being painted. This may be null, if the particular view is not known.

    Return Value

    A RectangleF in document coordinates that may be slightly larger than the rect argument, to account for where this object may be painted.
    Remarks

    The Bounds property provides the abstract position and size of an object. However, the actual painted area is often somewhat larger, because of the thickness of a Pen or because of a shadow.

    The default behavior of this method is just to return the rect value.

    See Also