Environment.ZoomFit (Boolean, Int32) Method

Fits the entire model in the viewport control's client area.
Public Overridable Sub ZoomFit( _ 
ByVal selectedOnly As Boolean, _ 
ByVal margin As Integer
)
This language is not supported or no code example is available.
public virtual void ZoomFit( 
bool selectedOnly
int margin 
)
This language is not supported or no code example is available.

Parameters

selectedOnly
bool

If true, fits only selected entities.

margin
int

Pixels margin from the border

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition