This document is archived and information here might be outdated.  Recommended version.

IGraphicProperties.MarkerSymbol Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IG > IGraphicProperties Interface > IGraphicProperties.MarkerSymbol Property
ArcGIS Developer Help

IGraphicProperties.MarkerSymbol Property

The marker symbol used by the CommandsEnvironment singleton.

[Visual Basic .NET]
Public Property MarkerSymbol As IMarkerSymbol
public IMarkerSymbol MarkerSymbol {get; set;}
HRESULT get_MarkerSymbol(
  IMarkerSymbol* ppMarkerSymbol
HRESULT put_MarkerSymbol(
  IMarkerSymbol** ppMarkerSymbol
ppMarkerSymbol [in]

ppMarkerSymbol is a parameter of type IMarkerSymbol* ppMarkerSymbol [out, retval]
ppMarkerSymbol is a parameter of type IMarkerSymbol**

Product Availability

Available with ArcGIS Engine.


The MarkerSymbol used by the ControlsNewMarkerTool, ControlsRouteCommand and the IHookActions methods. By default the IMarkerSymbol::Size is 2, and the IMarkerSymbol::Color is black.

The IMarkerSymbol::Color returns a clone, so to change the default color set an IColor object into IMarkerSymbol::Color.


//Get the IGraphicProperties interface
IGraphicProperties graphicProperties = new CommandsEnvironmentClass();
//Get the IRgbColor interface
IRgbColor color = new RgbColorClass();
//Set the color to be red ((Red) + (Green * 256) + (Blue * 256 * 256))
color.RGB = 255;

//Set the MarkerSymbol's color and size
graphicProperties.MarkerSymbol.Color = color;
graphicProperties.MarkerSymbol.Size = 3;

[Visual Basic .NET]

'Get the IGraphicProperties interface
Dim graphicProperties As IGraphicProperties = New CommandsEnvironmentClass
'Get the IRgbColor interface
Dim color As IRgbColor = New RgbColorClass
'Set the color to be red ((Red) + (Green * 256) + (Blue * 256 * 256))
color.RGB = 255

'Set the MarkerSymbol's color and size
graphicProperties.MarkerSymbol.color = color
graphicProperties.MarkerSymbol.Size = 3

See Also

IGraphicProperties Interface

.NET Samples

Controls commands environment