ArcObjects Library Reference (Controls)  

IEngineEditProperties Interface

Provides access to members that control the properties of an edit session.

Product Availability

Available with ArcGIS Engine.

Description

The IEngineEditProperties interface is used to manage all of the properties of an edit session.

Members

Description
Read/write property AutoSaveOnVersionRedefined Indicates whether the stop editing process should automatically reconcile an edit session and save the version without notification.
Read/write property ReportPrecision Controls the number of decimal places the editor reports numbers with.
Read/write property SelectedVertexSymbol Symbol used to draw the active vertex of the edit sketch.
Read/write property SketchSymbol Symbol used to draw the lines of the edit sketch.
Read/write property SketchVertexSymbol Symbol used to draw the vertices of the edit sketch.
Read/write property SnapSymbol Symbol used to draw the snap location.
Read/write property StreamGroupingCount Controls the number of points to group together when streaming.
Read/write property StreamTolerance Controls the streaming tolerance, measured in map units.
Read/write property StretchGeometry Indicates if the edit sketch is stretched when one of its vertices is moved.
Read-only property TargetLayer The editor's target layer.

CoClasses that implement IEngineEditProperties

CoClasses and Classes Description
EngineEditor A singleton object representing the Engine editing environment.
[C#]

private void ChangeSketchSymbol()
{
  //Get Engine Editor
  IEngineEditProperties engineEditor = new EngineEditorClass();

  //Create a line symbol
  ILineSymbol lineSymbol = new SimpleLineSymbolClass();
  IRgbColor rgbColor = new RgbColorClass();
  rgbColor.Red = 255;
  lineSymbol.Color = rgbColor;

  //Change the sketch symbol to use a red line
  engineEditor.SketchSymbol = lineSymbol;    
}

[Visual Basic .NET]

Public Sub ChangeSketchSymbol()
    'Get Engine Editor
    Dim engineEditor As IEngineEditProperties = New EngineEditorClass

    'Create a line symbol
    Dim lineSymbol As ILineSymbol = New SimpleLineSymbolClass
    Dim rgbColor As IRgbColor = New RgbColorClass
    rgbColor.Red = 255
    lineSymbol.Color = rgbColor

    'Change the sketch symbol to use a red line
    engineEditor.SketchSymbol = lineSymbol
End Sub