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

IEditor.EditState Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditor Interface > IEditor.EditState Property
ArcGIS Developer Help

IEditor.EditState Property

The editor's current edit state.

[Visual Basic .NET]
Public ReadOnly Property EditState As esriEditState
public esriEditState EditState {get;}

Product Availability

Available with ArcGIS Desktop.


The EditState property communicates the current state of the editor.


EditState uses the esriEditState Constants enumeration to indicate the editor's current state. Valid states are:

esriStateNotEditing               0
esriStateEditing                     1
esriStateEditingUnfocused    2

A good example of using this property is setting the Enabled property on ICommand


The get_EditState is used to return the enabled property of the tool.

public override bool Enabled
    if (m_editor == null)
      return false;
    return (m_editor.EditState == esriEditState.esriStateEditing);


[Visual Basic .NET]
Public Overrides ReadOnly Property Enabled() As Boolean
    Return (m_editor.EditState = esriEditState.esriStateEditing)
  End Get
End Property


See Also

IEditor Interface | esriEditState Constants