GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / Bounds Property
In This Topic
    Bounds Property (GoObject)
    In This Topic
    Gets or sets the bounding rectangle for this object.
    Syntax
    [Browsable(false)]
    public virtual RectangleF Bounds {get; set;}

    Property Value

    This RectangleF value describes the size and position of the object in document coordinates. The Width and Height must be non-negative.
    Remarks
    When getting the bounds, if InvalidBounds is true, we call ComputeBounds to get the correct updated bounds. When setting the bounds, we call OnBoundsChanged, GoGroup.GoGroup.OnChildBoundsChanged on the Parent (if any), and Changed with a subhint of ChangedBounds. You should override setting this property if you want to make sure this object never gets certain bounds, such as a size that's too small or large, or a position that is "out-of-bounds" for your application. However, if you only want to constrain how the user is allowed to move this object around with the mouse, you should override ComputeMove instead, or override DoMove if the constraint should be specific to a particular view or if something other than the Location should be set.
    See Also