This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARLayer Interface > IARLayer.GetExtent Method (ArcObjects .NET 10.4 SDK) |
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 );
Returns the xmin, ymin, xmax and ymax coordinates of the full extent of data in the ARLayer in MapUnits.
To zoom to the extent of an ARLayer pass the IARMap::SetExtent method the coordinates returned from the GetExtent method.