GoDiagram Win Reference
UpdateBounds Method

typically this should be the value of GoView.PrintScale
Call this method to update the bounds and the margins of this sheet when you want it to match the information in a PageSettings object.
Syntax
'Declaration
 
Public Overridable Sub UpdateBounds( _
   ByVal ps As PageSettings, _
   ByVal viewscale As Single _
) 
public virtual void UpdateBounds( 
   PageSettings ps,
   float viewscale
)

Parameters

ps
viewscale
typically this should be the value of GoView.PrintScale
Remarks
This updates the Bounds, TopLeftMargin, and BottomRightMargin. If PageSettings.Landscape is true, the PaperSize.Width is used for the Paper height, and the PaperSize.Height is used for the page width, after accounting for the viewscale. It does not update any GoGrid properties. Note well that this method may raise exceptions when examining the PageSettings ps and other printer structures, for example when there is no printer installed.
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

GoSheet Class
GoSheet Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback