GoDiagram Web Reference
ComputeBox Method

Compute the Bounds for the NewObject, given the initial and current positions of the mouse.
Syntax
'Declaration
 
Public Overridable Function ComputeBox() As RectangleF
public virtual RectangleF ComputeBox()

Return Value

a RectangleF in document coordinates, within the limits imposed by MinimumSize and MaximumSize
Remarks
If SnapsToGrid is true, the resulting box will have its top-left and bottom-right points snapped to the view's grid. However, the MinimumSize and MaximumSize limits still apply, so you probably want to set the MinimumSize to be the same as the GoView.GridCellSize.
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

GoToolCreating Class
GoToolCreating Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback