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

IEditSketch.Geometry Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditSketch Interface > IEditSketch.Geometry Property
ArcGIS Developer Help

IEditSketch.Geometry Property

Geometry stored in the edit sketch.

[Visual Basic .NET]
Public Property Geometry As IGeometry
public IGeometry Geometry {get; set;}

Product Availability

Available with ArcGIS Desktop.


This property sets the geometry the editor works with, ultimately passing it to the current task. By default, the editor creates a new empty geometry for you, and it does this any time you change the editor's current layer (IEditLayers::SetCurrentLayer ), reset the GeometryType property, or complete a task with a previous geometry. Because of this behavior, there is generally no need to set the Geometry property when you are building new geometries from scratch. Do set the Geometry property when you want to bring an existing feature into the edit sketch.

Valid geometry types are: esriGeometryPoint , esriGeometryMultipoint, esriGeometryPolyline and esriGeometryPolygon .

See Also

IEditSketch Interface

.NET Samples

Points along line construction tool ViperPin tool