GoDiagram Web Reference
DoResize Method (GoObject)

the GoView whose GoToolResizing is calling this method
the original bounding rectangle
the PointF, in document coordinates, to which the resize handle is being dragged
The IGoHandle.IGoHandle.HandleID of the handle being dragged
the value of GoToolResizing.GoToolResizing.MinimumSize
the value of GoToolResizing.GoToolResizing.MaximumSize
Called when a user resizes this object.
Syntax
'Declaration
 
Public Overridable Sub DoResize( _
   ByVal view As GoView, _
   ByVal origRect As RectangleF, _
   ByVal newPoint As PointF, _
   ByVal whichHandle As Integer, _
   ByVal evttype As GoInputState, _
   ByVal min As SizeF, _
   ByVal max As SizeF _
) 
public virtual void DoResize( 
   GoView view,
   RectangleF origRect,
   PointF newPoint,
   int whichHandle,
   GoInputState evttype,
   SizeF min,
   SizeF max
)

Parameters

view
the GoView whose GoToolResizing is calling this method
origRect
the original bounding rectangle
newPoint
the PointF, in document coordinates, to which the resize handle is being dragged
whichHandle
The IGoHandle.IGoHandle.HandleID of the handle being dragged
evttype
min
the value of GoToolResizing.GoToolResizing.MinimumSize
max
the value of GoToolResizing.GoToolResizing.MaximumSize
Remarks
This is normally called from GoToolResizing. By default it just calls ComputeResize, allowing reshaping if this object's CanReshape property is true and the view's last input's GoInputEventArgs.GoInputEventArgs.Shift property is true. The resulting RectangleF value is used as this object's new Bounds if ResizesRealtime is true or if evttype is GoInputState.GoInputState.Finish. Override ComputeResize if you want to constrain the user's resizing of this object without regard to the actual view or input events causing the resize.
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

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback