This document is archived and information here might be outdated. Recommended version. |
Symbol used to draw the lines of the edit sketch.
[Visual Basic .NET] Public Property SketchSymbol As ILineSymbol
[C#] public ILineSymbol SketchSymbol {get; set;}
public void ChangeSketchColor()
{
//get editor extension
UID editorUID=new UID();
editorUID.Value="esriEditor.Editor";
IEditor editor=m_application.FindExtensionByCLSID(editorUID) as IEditor;
IRgbColor rgbColor=new RgbColor();
rgbColor.Red=255;
ILineSymbol lineSymbol=new SimpleLineSymbol();
lineSymbol.Color=rgbColor;
IEditProperties editProperties=editor as IEditProperties;
editProperties.SketchSymbol=lineSymbol;
}
IEditProperties Interface | IEditProperties.SketchVertexSymbol Property | IEditProperties.SelectedVertexSymbol Property | IEditProperties.SnapSymbol Property