Back to Devexpress

MapControl.ZoomToFitLayerItems(IEnumerable<LayerBase>) Method

windowsforms-devexpress-dot-xtramap-dot-mapcontrol-dot-zoomtofitlayeritems-x28-system-dot-collections-dot-generic-dot-ienumerable-devexpress-dot-xtramap-dot-layerbase-x29.md

latest1.7 KB
Original Source

MapControl.ZoomToFitLayerItems(IEnumerable<LayerBase>) Method

Zooms the map to fit items contained in the specified set of LayerBase class descendant objects.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public void ZoomToFitLayerItems(
    IEnumerable<LayerBase> layers
)
vb
Public Sub ZoomToFitLayerItems(
    layers As IEnumerable(Of LayerBase)
)

Parameters

NameTypeDescription
layersIEnumerable<LayerBase>

A IEnumerable object, containing LayerBase class descendant objects.

|

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