ArcObjects Library Reference (Controls)  

IEngineEditLayers.TargetLayer Property

The EngineEditor's target layer that new features are added to.

[Visual Basic .NET]
Public ReadOnly Property TargetLayer As IFeatureLayer
[C#]
public IFeatureLayer TargetLayer {get;}
[C++]
HRESULT get_TargetLayer(
  IFeatureLayer** Layer
);
[C++]

Parameters

Layer [out, retval]

  Layer is a parameter of type IFeatureLayer

Product Availability

Available with ArcGIS Engine.

Description

Use this property to check the EngineEditor's target layer. The target layer is the layer that new features are typically written to by commands or edit tasks. For example, The "Create New Feature" task creates new features and stores them in the target layer. Use the IEngineEditLayers::SetTargetLayer property to set the target layer.

If the ControlsEditingTargetToolControl is not present then this property will be null at the start of the edit session until explicitly set.

See Also

IEngineEditLayers Interface

.NET Samples

Cut polygons without selection edit task (Code Files: CutPolygonsWithoutSelectionEditTask) | Custom reshape polyline edit task (Code Files: ReshapePolylineEditTask) | Managing snap agents (Code Files: SnapEditorForm) | Buffer snap agent (Code Files: BufferSnap)

.NET Related Topics

How to work with the snap environment