GoDiagram Web Reference
RescaleWithCenter Method

the new value for DocScale
a PointF in document coordinates
Change the DocScale, and adjust the DocPosition so that the docPt remains at the center of the view.
Syntax
'Declaration
 
Public Overridable Sub RescaleWithCenter( _
   ByVal newscale As Single, _
   ByVal docPt As PointF _
) 
public virtual void RescaleWithCenter( 
   float newscale,
   PointF docPt
)

Parameters

newscale
the new value for DocScale
docPt
a PointF in document coordinates
Remarks

The given docPt may not actually remain at the center of the view if the LimitDocPosition method limits where the view can be scrolled to.

UpdateExtent calls this method, even if the scale is not changing.

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

GoView Class
GoView Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback