Map for WinForms | ComponentOne
C1.Win.Map Namespace / C1Map Class / CalculateAutoZoomCenter Method
The suitable zoom.
The suitable center.
The vector items (can be null to select all).

In This Topic
    CalculateAutoZoomCenter Method (C1Map)
    In This Topic
    Calculates the suitable zoom and center which can show all or selected the vector items.
    Syntax
    'Declaration
     
    
    Public Function CalculateAutoZoomCenter( _
       ByRef zoom As Double, _
       ByRef center As C1.Win.Interop.Point, _
       Optional ByVal items As IEnumerable(Of VectorItem) _
    ) As Boolean
    public bool CalculateAutoZoomCenter( 
       out double zoom,
       out C1.Win.Interop.Point center,
       IEnumerable<VectorItem> items
    )

    Parameters

    zoom
    The suitable zoom.
    center
    The suitable center.
    items
    The vector items (can be null to select all).

    Return Value

    false, if there are no items to track; otherwise, true.
    See Also