ArcObjects Library Reference  (Editor)    

IEditLayers Interface

Provides access to members that control information about layers in the edit session.

Product Availability

Available with ArcGIS Desktop.

When To Use

The IEditLayers interface exposes members for setting and getting the editor's current layer and current subtype. The current layer (or target layer) determines which layer will contain newly created features. For instance, if you set the target layer to 'Buildings', any new features created will be part of the Buildings layer. Edit tasks and commands that create new features use this property to determine which layer to write out the new features to. For example, the 'Create New Features' task and the 'Union' command both create new features in the target layer.

Members

Description
Read-only property CurrentLayer Indicates the editor's target layer which new features are added to.
Read-only property CurrentSubtype The sub type for new features in the CurrentLayer.
Method IsEditable Determines if a specific feature layer is editable.
Method SetCurrentLayer The editor's target layer and subtype for new features.

CoClasses that implement IEditLayers

CoClasses and Classes Description
Editor The Object Editor Extension.

Remarks

The IEditLayers interface is used to access information about layers involved in an edit session. For example, use IEditLayers to determine if a particular layer involved in an edit session is editable or not; in addition,
use IEditLayers to check or set the editor’s current layer and current subtype.

The current layer (or target layer) determines which layer will receive newly created features. Edit tasks and commands that create new features use this property to determine to which layer to write out the new features.

See Also

IDatasetEdit Interface | IDatasetEditInfo Interface | IEditEvents2 Interface | Editor Class | IEditTask.OnDeleteSketch Method | IEditor Interface | IEditEvents Interface | IEditTask.OnFinishSketch Method | IEditProperties Interface | ISnapEnvironment Interface | IEditTask.Deactivate Method | IEditAttributeProperties Interface | IEditTask.Activate Method | IEditLayers Interface | IEditTask.Name Property | IEditSketch Interface | IFeatureLayer Interface

Example

IEditLayers_Example