Returns an Envelope representing the maximum extent of data which has been stored in the Table. This property only applies to geodatabase feature classes and shapefiles which are capable of storing vector data.

Namespace:  ESRI.ArcGISExplorer.Data

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public Envelope Extent { get; }
Visual Basic (Declaration)
Public ReadOnly Property Extent As Envelope

Field Value

The Envelope representing the bounding box around the spatial data stored in the Table. IsSpatial must be true to use this property.

Examples

The code below opens a file geodatabase feature class, performs a check to ensure that it is capable of storing vector data then prints out a number of properties including the X and Y coordinates that define the bounding box around the Table.
CopyC#
//Open a file geodatabase feature class called mountains
Table mountainsTable = Table.OpenFileGeodatabaseTable(@"C:\Data\Scotland.gdb", "mountains");

//Check that the Table can contain vector data
if (mountainsTable.IsSpatial == true)  //will be true
{
  System.Diagnostics.Debug.Print(mountainsTable.GeometryType.ToString()); //Prints "Point"
  System.Diagnostics.Debug.Print(mountainsTable.CoordinateSystem.Name);   //Prints "British_National_Grid"

  //Print the coordinates that define the bounding box
  System.Diagnostics.Debug.Print(mountainsTable.Extent.XMin.ToString());
  System.Diagnostics.Debug.Print(mountainsTable.Extent.YMin.ToString());
  System.Diagnostics.Debug.Print(mountainsTable.Extent.XMax.ToString());
  System.Diagnostics.Debug.Print(mountainsTable.Extent.XMax.ToString());
}
CopyVB.NET
'Open a file geodatabase feature class called mountains
Dim mountainsTable As Table = Table.OpenFileGeodatabaseTable("C:\Data\Scotland.gdb", "mountains")

'Check that the Table can contain vector data
If mountainsTable.IsSpatial = True Then  'will be true


  System.Diagnostics.Debug.Print(mountainsTable.GeometryType.ToString()) 'Prints "Point"
  System.Diagnostics.Debug.Print(mountainsTable.CoordinateSystem.Name)   'Prints "British_National_Grid"


  'Print the coordinates that define the bounding box
  System.Diagnostics.Debug.Print(mountainsTable.Extent.XMin.ToString())
  System.Diagnostics.Debug.Print(mountainsTable.Extent.YMin.ToString())
  System.Diagnostics.Debug.Print(mountainsTable.Extent.XMax.ToString())
  System.Diagnostics.Debug.Print(mountainsTable.Extent.XMax.ToString())
End If

See Also