This document is archived and information here might be outdated. Recommended version. |
Symbol used to draw the vertices of the edit sketch.
[Visual Basic .NET] Public Property SketchVertexSymbol As IMarkerSymbol
[C#] public IMarkerSymbol SketchVertexSymbol {get; set;}
This sample assums you have a reference to IApplication from the
OnCreate hook parameter (IApplication app=hook).
public void ChangeVertexSymbol()
{
IEditor vEditor;
vEditor=app.FindExtensionByName("ESRI Object Editor") as IEditor;
IEditProperties editProperties;
editProperties=vEditor as IEditProperties;
IRgbColor vertexColor=new RgbColorClass();
vertexColor.Green=255;
IMarkerSymbol markerSymbol=new SimpleMarkerSymbolClass();
markerSymbol.Color=vertexColor;
markerSymbol.Size=3;
editProperties.SketchVertexSymbol=markerSymbol;
}
IEditProperties Interface | IEditProperties.SketchSymbol Property | IEditProperties.SelectedVertexSymbol Property | IEditProperties.SnapSymbol Property