Viewport.ZoomFit (IList<Entity>, Boolean, perspectiveFitType, Int32, Boolean) Method

Fits the entire model in the viewport control's client area.
Public Overridable Sub ZoomFit( _ 
ByVal entList As IList(Of Entity), _ 
ByVal selectedOnly As Boolean, _ 
ByVal perspectiveFitMode As perspectiveFitType, _ 
ByVal margin As Integer, _ 
Optional ByVal fitLabels As Boolean = false _ 
)
This language is not supported or no code example is available.
public virtual void ZoomFit( 
IList<Entity> entList
bool selectedOnly
perspectiveFitType perspectiveFitMode
int margin
bool fitLabels = false 
)
This language is not supported or no code example is available.

Parameters

entList
IList<Entity>

The list of entities to be fitted

selectedOnly
bool

If true, fits only selected entities.

perspectiveFitMode
perspectiveFitType

Zoom fit accuracy in perspective projection mode

margin
int

Pixels margin from the border

fitLabels
bool

If true, fits also the labels

.NET Framework

Supported in: 4.8

In this article

Definition