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 | Editor Class | IEditTask.OnFinishSketch Method | IEditor Interface | IEditTask.OnDeleteSketch Method | IEditTask.Activate Method | IEditTask.Deactivate Method | IEditSketch Interface | IEditAttributeProperties Interface | IEditLayers Interface | IEditEvents Interface | IEditTask.Name Property | IEditProperties Interface | IEditEvents2 Interface | ISnapEnvironment Interface | IExtension Interface