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

IGeometry4.Changed Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometry4 Interface > IGeometry4.Changed Property
ArcGIS Developer Help

IGeometry4.Changed Property

Indicates if a geometry has been changed (edited, projected, etc).

[Visual Basic .NET]
Public Property Changed As Boolean
public bool Changed {get; set;}
HRESULT get_Changed(
  Boolean* isChanged
HRESULT put_Changed(
  VARIANT_BOOL isChanged
isChanged [out, retval]

isChanged is a parameter of type bool* isChanged
isChanged is a parameter of type bool

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


The Changed method returns whether or not the geometry has been modified. If the geometry always stays in memory that method only returns 'false' immediately after its creation. However if the shape came from disk the Changed method will return 'false' until de geometry is modified in memory.


    //This example demonstrates how to use the Changed method
    private void Changed_Example()
        IEnvelope envelope = new EnvelopeClass();
        envelope.PutCoords(0, 0, 20, 20);
        ISegmentCollection segmentCollection = new PolygonClass();
        IGeometry4 geometry = segmentCollection as IGeometry4;
        System.Windows.Forms.MessageBox.Show("Just after creation : " + geometry.Changed);
        System.Windows.Forms.MessageBox.Show("Just after modification : " + geometry.Changed);

See Also

IGeometry4 Interface