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


IEngineEditLayers.TargetLayer Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineEditLayers Interface > IEngineEditLayers.TargetLayer Property
ArcGIS Developer Help

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

Buffer snap agent Cut polygons without selection edit task Managing snap agents Custom reshape polyline edit task