Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot Namespace / Viewport Class / ZoomFit Method / ZoomFit(IList<Entity>,Boolean,perspectiveFitType,Int32,Boolean) Method
The list of entities to be fitted
If true, fits only selected entities.
Zoom fit accuracy in perspective projection mode
Pixels margin from the border
If true, fits also the labels

In This Topic
    ZoomFit(IList<Entity>,Boolean,perspectiveFitType,Int32,Boolean) Method
    In This Topic
    Fits the entire model in the viewport control's client area.
    Syntax
    'Declaration
     
    Public Overloads Overridable Sub ZoomFit( _
       ByVal entList As IList(Of Entity), _
       ByVal selectedOnly As Boolean, _
       ByVal perspectiveFitMode As Camera.perspectiveFitType, _
       ByVal margin As Integer, _
       Optional ByVal fitLabels As Boolean _
    ) 
    public virtual void ZoomFit( 
       IList<Entity> entList,
       bool selectedOnly,
       Camera.perspectiveFitType perspectiveFitMode,
       int margin,
       bool fitLabels
    )

    Parameters

    entList
    The list of entities to be fitted
    selectedOnly
    If true, fits only selected entities.
    perspectiveFitMode
    Zoom fit accuracy in perspective projection mode
    margin
    Pixels margin from the border
    fitLabels
    If true, fits also the labels
    See Also