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


IEditLayers.CurrentLayer Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Editor)  

IEditLayers.CurrentLayer Property

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;}

Product Availability

Available with ArcGIS Desktop.

Remarks

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.

See Also

IEditLayers Interface

.NET Samples

ViperPin tool (Code Files: ViperPinForm)

.NET Related Topics

Working with the editor snap environment