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


IEditSketchExtension.CreateFeedback Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditSketchExtension Interface > IEditSketchExtension.CreateFeedback Method
ArcGIS Developer Help

IEditSketchExtension.CreateFeedback Method

Called when a new feedback is needed.

[Visual Basic .NET]
Public Function CreateFeedback ( _
) As IDisplayFeedback
[C#]
public IDisplayFeedback CreateFeedback (
);

Product Availability

Available with ArcGIS Desktop.

Remarks

The ::CreateFeedback() method is called by the controller to initiate the creation of a custom feedback object associated to the EditSketchExtension .

Use this method to create your feedback object and pass it out so the Editor can use it.

[C#]
public IDisplayFeedback CreateFeedback()
{
  IEditSketch editSketch = m_editor as IEditSketch; ;
  IPointCollection points = editSketch.Geometry as IPointCollection;
  DispFeedBack feedback = new DispFeedBack; //a custom feedback object
  feedback.StartPt = points.get_Point(0);
  return feedback;
}


 

[Visual Basic .NET]
  Public Function CreateFeedback() As IDisplayFeedback
    Dim editSketch As IEditSketch = TryCast(m_editor, IEditSketch)
    Dim points As IPointCollection = TryCast(editSketch.Geometry, IPointCollection)
    Dim feedback As DispFeedBack = New DispFeedBack  'a custom feedback object
    feedback.StartPt = points.Point(0)
    Return feedback
  End Function

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