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


IEditSketch.Geometry Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Editor)  

IEditSketch.Geometry Property

Geometry stored in the edit sketch.

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

Product Availability

Available with ArcGIS Desktop.

Remarks

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 (Code Files: PointsAlongLineForm) | ViperPin tool (Code Files: ViperPinForm)

.NET Related Topics

Working with the edit sketch