GoDiagram Win Reference
ExpandPaintBounds Method (GoObject)

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.
Expand a bounding rectangle to better represent where this object is painted.
Syntax
'Declaration
 
Public Overridable Function ExpandPaintBounds( _
   ByVal rect As RectangleF, _
   ByVal view As GoView _
) As RectangleF
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.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoObject Class
GoObject Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback