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


IEngineEditSketch.EditLocation Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Controls)  

IEngineEditSketch.EditLocation Property

A point that can be used by any custom editing commands. This property is set by the SetEditLocation method.

[Visual Basic .NET]
Public ReadOnly Property EditLocation As IPoint
[C#]
public IPoint EditLocation {get;}
[C++]
HRESULT get_EditLocation(
  IPoint** loc
);
[C++]

Parameters loc [out, retval]
loc is a parameter of type IPoint

Product Availability

Available with ArcGIS Engine.

Description

This property stores the Point location specified by the IEngineEditSketch::SetEditLocation method. Once a point has been stored in this property it remains there until the EngineEditSketch::SetEditLocation method is called again.
Use this property when creating custom commands that require a specific point location to perform some operation. For example, the OnMouseUp event could call IEngineEditSketch::SetEditLocation to store the point at which the user had clicked on the MapControl into the EditLocation property. This property could then be used by an 'Insert Vertex' command to add a new vertex to a sketch.
 

See Also

IEngineEditSketch Interface