ArcObjects Library Reference (Controls)  

IEngineEditSketch.GeometryType Property

Type of the geometry stored in the edit sketch.

ERROR: Syntax information about IEngineEditSketch.GeometryType may not be in D:\ArcGIS\DotNet\ESRI.ArcGIS.Controls.dll

[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)