This document is archived and information here might be outdated.  Recommended version.


IARMap.ZoomIn Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARMap Interface > IARMap.ZoomIn Method
ArcGIS Developer Help

IARMap.ZoomIn Method

Zooms in on the map by a factor.

[Visual Basic .NET]
Public Sub ZoomIn ( _
    ByVal factor As Double _
)
[C#]
public void ZoomIn (
    double factor
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Zooms in on the ARMap from the center of its current visible extent by a specified factor. This factor represents the ratio between the new visible extent and the previous visible extent and will cause the MapScale property to change. For example, zooming in by a factor of 2, is the same as zooming out by a factor of 0.5 and vice versa.

Errors Returned

2030 800A07EE: Invalid zoom factor, the zoom factor must not be 0 

2115 800A0843: Unable to change scale when extent type is fixed scale.

2116 800A0844: Unable to change extent when extent type is fixed extent.

See Also

IARMap Interface | IARMap.ZoomOut Method | IARMap.Pan Method | IARMap.CenterAt Method