Viewport.SetView (viewType, Boolean, Boolean, Int32, Boolean, Int32) Method

Sets the specified view.
Public Sub SetView( _ 
ByVal view As viewType, _ 
ByVal fit As Boolean, _ 
ByVal animate As Boolean, _ 
ByVal margin As Integer, _ 
Optional ByVal selectedOnly As Boolean = false, _ 
Optional ByVal duration As Integer = 0 _ 
)
This language is not supported or no code example is available.
public void SetView( 
viewType view
bool fit
bool animate
int margin
bool selectedOnly = false, 
int duration = 0 
)
This language is not supported or no code example is available.

Parameters

view
viewType

View type

fit
bool

If true fits the view

animate
bool

If true performs an animation when changing the view

margin
int

Pixels margin from the border, if fit is true

selectedOnly
bool

If fit is true, fits only the selected entities

duration
int

Animation duration (use 0 to use the Environment.AnimateCameraDuration

.NET Framework

Supported in: 4.8

In this article

Definition