Back to Devexpress

MapControl.ZoomToFit(IEnumerable<MapItem>) Method

windowsforms-devexpress-dot-xtramap-dot-mapcontrol-dot-zoomtofit-x28-system-dot-collections-dot-generic-dot-ienumerable-devexpress-dot-xtramap-dot-mapitem-x29.md

latest1.5 KB
Original Source

MapControl.ZoomToFit(IEnumerable<MapItem>) Method

Zooms the map to fit the area containing items sent as parameter.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public void ZoomToFit(
    IEnumerable<MapItem> items
)
vb
Public Sub ZoomToFit(
    items As IEnumerable(Of MapItem)
)

Parameters

NameTypeDescription
itemsIEnumerable<MapItem>

A set of MapItem descendant objects that should be visible on a map after zooming.

|

Remarks

When vector items loading in a runtime this method should be called from LayerBase.DataLoaded event handler.

See Also

MapControl Class

MapControl Members

DevExpress.XtraMap Namespace