The geometry that will be used in the sketch when modifying a feature.
[Visual Basic .NET] Public Function CreateSketchGeometry ( _ ByVal feature As IFeature _ ) As IGeometry
[C#] public IGeometry CreateSketchGeometry ( IFeature feature );
Product Availability
Remarks
Use this method when either 1) modifying an existing feature's geometry or 2) creating a new geometry for the EditSketch to use initially.
You can start with the geometry of the feature you have been given the reference to, possibly modify it, and pass it back out -or- create a completely new geometry for intial use by the EditSketch.
This is primarily used in conjunction with the modify task.
public IGeometry CreateSketchGeometry(ESRI.ArcGIS.Geodatabase.IFeature feature)
{
if (feature != null)
return feature.Shape;
else
return null;
}
Public Function CreateSketchGeometry(ByVal feature As ESRI.ArcGIS.Geodatabase.IFeature) As IGeometry
If Not feature Is Nothing Then
Return feature.Shape
Else
Return Nothing
End If
End Function
See Also
IEditSketchExtension Interface | IDatasetEdit Interface | IDatasetEditInfo Interface | IEditTask.Name Property | Editor Class | ISnapEnvironment Interface | IEditEvents2 Interface | IEditTask.Deactivate Method | IEditAttributeProperties Interface | IEditor Interface | IEditSketch Interface | IEditTask.OnFinishSketch Method | IEditProperties Interface | IEditLayers Interface | IEditTask.Activate Method | IEditTask.OnDeleteSketch Method | IEditEvents Interface | IExtension Interface