Nevron .NET Vision Documentation
SizeToViewport Method


document viewport to size to
Resizes the canvas to fit the specified document viewport
Syntax
'Declaration
 
Public Overridable Function SizeToViewport( _
   ByVal viewport As NRectangleF _
) As System.Boolean
'Usage
 
Dim instance As NCanvas
Dim viewport As NRectangleF
Dim value As System.Boolean
 
value = instance.SizeToViewport(viewport)
public virtual System.bool SizeToViewport( 
   NRectangleF viewport
)

Parameters

viewport
document viewport to size to

Return Value

true if the operation completed successfully, otherwise false
Remarks
This operation will set the ScaleX and ScaleY properties to 1, and will change the CanvasSize 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

NCanvas Class
NCanvas Members

Send Feedback