MapControl.ZoomToFit Method

Name Parameters Description
ZoomToFit(IEnumerable<MapItem>) items Zooms the map to fit the area containing items sent as parameter.
ZoomToFit(IEnumerable<MapItem>, Double) items, paddingFactor Zooms the map to fit the area that contains items sent as a parameter.
ZoomToFit(IEnumerable<MapItem>, Double, Boolean) items, paddingFactor, roundZoomLevel Zooms the map based on a specified padding factor to allow the map viewport to display all items passed in parameters. Allows you to set whether the map should use a non-negative integer zoom level.