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


IEditSketchExtension.SketchGeometryType Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Editor)  

IEditSketchExtension.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

IEditSketchExtension 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 | IEditSketchExtension2 Interface