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


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

IARPageLayout.ZoomToPercent Method

Magnifies the page by a percentage (100 means actual size, 200 means twice the normal size).

[Visual Basic .NET]
Public Sub ZoomToPercent ( _
    ByVal percent As Integer _
)
[C#]
public void ZoomToPercent (
    int percent
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Zoom the ARPageLayout's page to the specified percentage. A percent of 100 will display the page at 1:1 and a percent of 200 will display the page at twice the normal size. The ZoomToPercent method automatically refreshes the ARPageLayout display area. 

Errors Returned

2120 800A0848: Invalid zoom percentage, the zoom percentage must be greater than 0 

Remarks

Use the ZoomPercent property to check the current zoom factor.

See Also

IARPageLayout Interface | IARPageLayout.ZoomToWholePage Method | IARPageLayout.ZoomToWidth Method