GoDiagram Win Reference
SetSizeKeepingLocation Method (GoObject)

Sets a new size for this object while maintaining the same location.
Syntax
'Declaration
 
Public Overridable Sub SetSizeKeepingLocation( _
   ByVal s As SizeF _
) 
public virtual void SetSizeKeepingLocation( 
   SizeF s
)

Parameters

s
Remarks
If the natural location of an object is not the top-left corner, changing the size of an object will also change its location. However, there are times when you wish to change the size without changing the location. This method is more efficient than remembering the Location, setting the Size, and then setting the Location again. By default this assumes the Location is really the TopLeft spot of the object. If you override this method, you should also override the Location property.
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