Eyeshot 10 WinForms API Reference
SetView(viewType,Boolean,Boolean,Int32,Boolean,Int32) Method

WinForms Assembly > devDept.Eyeshot Namespace > Viewport Class > SetView Method : SetView(viewType,Boolean,Boolean,Int32,Boolean,Int32) Method
View type
If true fits the view
If true performs an animation when changing the view
Pixels margin from the border, if fit is true
If fit is true, fits only the selected entities
Animation duration (use 0 to use the ViewportLayout.AnimateCameraDuration
Sets the specified view.
Syntax
'Declaration
 
Public Overloads Sub SetView( _
   ByVal view As viewType, _
   ByVal fit As Boolean, _
   ByVal animate As Boolean, _
   ByVal margin As Integer, _
   Optional ByVal selectedOnly As Boolean, _
   Optional ByVal duration As Integer _
) 
public void SetView( 
   viewType view,
   bool fit,
   bool animate,
   int margin,
   bool selectedOnly,
   int duration
)

Parameters

view
View type
fit
If true fits the view
animate
If true performs an animation when changing the view
margin
Pixels margin from the border, if fit is true
selectedOnly
If fit is true, fits only the selected entities
duration
Animation duration (use 0 to use the ViewportLayout.AnimateCameraDuration
See Also

Reference

Viewport Class
Viewport Members
Overload List
IsCameraAnimating Method
StopCameraAnimation Method