This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditSketchExtension Interface > IEditSketchExtension.CreateSketchGeometry Method (ArcObjects .NET 10.5 SDK) |
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 );
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
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