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


IARLayer.GetExtent Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (PublisherControls)  

IARLayer.GetExtent Method

The extent of the data within the layer.

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

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Returns the xmin, ymin, xmax and ymax coordinates of the full extent of data in the ARLayer in MapUnits.

Remarks

To zoom to the extent of an ARLayer pass the IARMap::SetExtent method the coordinates returned from the GetExtent method.

See Also

IARLayer Interface