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


IEngineEditSketch.GeometryType Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Controls)  

IEngineEditSketch.GeometryType Property

Type of the geometry stored in the edit sketch.

[Visual Basic .NET]
Public Property GeometryType As esriGeometryType
[C#]
public esriGeometryType GeometryType {get; set;}
[C++]
HRESULT get_GeometryType(
  esriGeometryType* geomType
);
[C++]
HRESULT put_GeometryType(
  esriGeometryType geomType
);
[C++]

Parameters geomType [out, retval]
geomType is a parameter of type esriGeometryType geomType [in]
geomType is a parameter of type esriGeometryType

Product Availability

Available with ArcGIS Engine.

Description

Use this property in conjunction with the IEngineEditSketch::Geometry property to manage the geometry inside the edit sketch. Setting GeometryType automatically initializes the IEngineEditSketch::Geometry property and vice versa. For example, if you set the GeometryType to esriGeometryPolygon, a new empty Polygon object will be created.

Valid esriGeometryType constants used by IEngineEditSketch are: esriGeometryPoint, esriGeometryMultipoint, esriGeometryPolyline, esriGeometryPolygon and esriGeometryNull.

See Also

IEngineEditSketch Interface

.NET Samples

Cut polygons without selection edit task (Code Files: CutPolygonsWithoutSelectionEditTask) | Custom reshape polyline edit task (Code Files: ReshapePolylineEditTask)