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