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


IARMap.SetExtent Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (PublisherControls)  

IARMap.SetExtent Method

Sets the visible extent of the map.

[Visual Basic .NET]
Public Sub SetExtent ( _
    ByVal xMin As Double, _
    ByVal yMin As Double, _
    ByVal xMax As Double, _
    ByVal yMax As Double _
)
[C#]
public void SetExtent (
    double xMin,
    double yMin,
    double xMax,
    double yMax
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Sets the xmin, ymin, xmax and ymax coordinates of the ARMap's current visible extent in MapUnits. The SetExtent method automatically refreshes the ARMap's display area.

See Also

IARMap Interface | IARMap.GetExtent Method | IARMap.GetFullExtent Method | IARMap.ZoomToFullExtent Method