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


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

IEditSketchExtension2.SketchGeometryType Property

The geometry type used for the edit sketch when creating new features.

[Visual Basic .NET]
Public ReadOnly Property SketchGeometryType As esriGeometryType
[C#]
public esriGeometryType SketchGeometryType {get;}

Product Availability

Available with ArcGIS Desktop.

Remarks

The ::SketchGeometryType() method is used to specify the geometry type of the editsketch.  Keep in mind that this can be different than the geometry type of the feature.

You may want the geometry type of the editsketch to be polygon yet ultimately store it in a featureclass of geometry type polyline.

[C#]
public esriGeometryType SketchGeometryType
{
  get 
  {
    return esriGeometryType.esriGeometryPolygon; 
  }
}
[Visual Basic .NET]
  Public Property SketchGeometryType() As ESRI.ArcGIS.Geometry.esriGeometryType
Get
Return esriGeomeTryType.esriGeomeTryPolyline
End Get
Set(ByVal value As ESRI.ArcGIS.Geometry.esriGeometryType)
value = esriGeometryType.esriGeometryPolyline
End Set
End Property
 

See Also

IEditSketchExtension2 Interface | IDatasetEdit Interface | IDatasetEditInfo Interface | IEditSketch Interface | IEditTask.Activate Method | IEditor Interface | IEditTask.Deactivate Method | ISnapEnvironment Interface | IEditEvents2 Interface | IEditLayers Interface | IEditEvents Interface | IEditTask.Name Property | Editor Class | Editor Library | IEditTask.OnFinishSketch Method | IEditAttributeProperties Interface | IEditTask.OnDeleteSketch Method | IEditProperties Interface | IExtension Interface