The line symbol used by the CommandsEnvironment singleton.
[Visual Basic .NET] Public Property LineSymbol As ILineSymbol
[C#] public ILineSymbol LineSymbol {get; set;}
[C++]
HRESULT get_LineSymbol(
  ILineSymbol** ppLineSymbol
);
[C++]
HRESULT put_LineSymbol(
  ILineSymbol* ppLineSymbol
);
[C++]Parameters
ppLineSymbol [out, retval]ppLineSymbol is a parameter of type ILineSymbol
ppLineSymbol [in]ppLineSymbol is a parameter of type ILineSymbol
Product Availability
Available with ArcGIS Engine.
Description
The LineSymbol used by the ControlsNewCurveTool, ControlsNewFreeHandTool, ControlsNewLineTool, ControlsInkGenericDrawTool, ControlsInkHighlightTool, ControlsInkPenTool and the IHookActions methods. By default the Size is 2, and the ILineSymbol::Color is black.
The ILineSymbol::Color returns a clone, so to change the default color set an IColor object into ILineSymbol::Color.
[C#]
//Get the IGraphicProperties interfaceIGraphicProperties graphicProperties =newCommandsEnvironmentClass();//Get the IRgbColor interfaceIRgbColor color =newRgbColorClass();//Set the color to be red ((Red) + (Green * 256) + (Blue * 256 * 256))color.RGB = 255;//Set the LineSymbol's color and sizegraphicProperties.LineSymbol.Color = color; graphicProperties.LineSymbol.Size = 3;
[Visual Basic .NET]
'Get the IGraphicProperties interfaceDimgraphicPropertiesAsIGraphicProperties =NewCommandsEnvironmentClass'Get the IRgbColor interfaceDimcolorAsIRgbColor =NewRgbColorClass'Set the color to be red ((Red) + (Green * 256) + (Blue * 256 * 256))color.RGB = 255'Set the LineSymbol's color and sizegraphicProperties.LineSymbol.color = color graphicProperties.LineSymbol.Size = 3