![]() |
This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditLayers Interface > IEditLayers.CurrentLayer Property (ArcObjects .NET 10.4 SDK) |
Indicates the editor's target layer which new features are added to.
[Visual Basic .NET] Public ReadOnly Property CurrentLayer As IFeatureLayer
[C#] public IFeatureLayer CurrentLayer {get;}
Use this property to check the editor's current layer. Use the SetCurrentLayer property to set the current layer. The current layer is the layer that new features are typically written to. For example, the CreateNewFeature Task, the Buffer command, and the CopyParallel command all create new features and store them in the current layer. Custom tools and tasks do not have to model this behavior. All layers that return TRUE for IsEditable, are editable simulataneously. To edit features in a particular layer, you do not have to call SetCurrentLayer method for that layer.