Indicates whether the Geometry contains any geometric information.

Namespace:  ESRI.ArcGISExplorer.Geometry

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

Syntax

C#
public virtual bool IsEmpty { get; }
Visual Basic (Declaration)
Public Overridable ReadOnly Property IsEmpty As Boolean

Field Value

trueTruetruetrue (True in Visual Basic) if the Geometry contains geometric information; otherwise, falseFalsefalsefalse (False in Visual Basic).

Remarks

An empty geometry is one which has not yet had any geographical location specified. Typically you would find an empty geometry if it has been initialized using an unparameterized constructor. You may also find that some Rows in a Table have an empty geometry.

Examples

The example below uses the IsEmpty property of a Geometry to check for empty geometries in a Table before adding Graphics to a Map; any empty geometries would not display correctly if added as graphics. The code assumes you have a spatially-enabled Table called featureTable.
CopyC#
ESRI.ArcGISExplorer.Mapping.MapDisplay disp = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay;

// Iterate all the rows in an existing spatially-enabled Table called featureTable.
foreach (Row rw in featureTable.GetRows())
{
  // Dont use empty geometries - they have no geographical location.
  if (!rw.Geometry.IsEmpty)
  {
    // Create a new graphic - let the method use the default symbology.
    Graphic featureGraphic = new Graphic(rw.Geometry);
    disp.Graphics.Add(featureGraphic);
  }
}
CopyVB.NET
' Iterate all the rows in an existing spatially-enabled Table called featureTable.
Dim rw As Row
For Each rw In featureTable.GetRows()
        ' Don't use empty geometries - they have no geographical location.
  If Not rw.Geometry.IsEmpty Then
    ' Create a new graphic - let the method use the default symbology.
    Dim featureGraphic As Graphic = New Graphic(rw.Geometry)
    currentDisplay.Graphics.Add(featureGraphic)
  End If
Next rw

See Also