[]
        
(Showing Draft Content)

C1.Win.Map.C1Map.CalculateAutoZoomCenter

CalculateAutoZoomCenter Method

CalculateAutoZoomCenter(out double, out Point, IEnumerable<VectorItem>)

Calculates the suitable zoom and center which can show all or selected the vector items.

Declaration
public bool CalculateAutoZoomCenter(out double zoom, out Point center, IEnumerable<VectorItem> items = null)
Parameters
Type Name Description
double zoom

The suitable zoom.

Point center

The suitable center.

IEnumerable<VectorItem> items

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

Returns
Type Description
bool
false
, if there are no items to track; otherwise,
true
.