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 > IEditSketch3 Interface > IEditSketch3.SetWYSIWYGSketchSymbol Method (ArcObjects .NET 10.5 SDK) |
The WYSIWYG Sketch symbol and its properties.
[Visual Basic .NET] Public Sub SetWYSIWYGSketchSymbol ( _ ByVal symbol As ISymbol, _ ByVal isWYSIWYG As Boolean, _ ByVal respectsRefScale As Boolean _ )
[C#] public void SetWYSIWYGSketchSymbol ( ISymbol symbol, bool isWYSIWYG, bool respectsRefScale );
IEditSketch3 editSketch3=m_editor as IEditSketch3;
//Create a new color
IRgbColor lineColor = new RgbColorClass();
lineColor.Red=120;
//set up the line symbol
ILineSymbol lineSym = new MarkerLineSymbolClass();
lineSym.Color=lineColor;
lineSym.Width=4;
ISymbol wiSymbol=lineSym as ISymbol;
//Setting the WYSIWG sketch symbol to be WYSIWYG as well as respect the ref scale.
editSketch3.SetWYSIWYGSketchSymbol(wiSymbol, true, true);