This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapDescription2 Interface > IMapDescription2.SelectionColor Property (ArcObjects .NET 10.5 SDK) |
The default selection color.
[Visual Basic .NET] Public Property SelectionColor As IColor
[C#] public IColor SelectionColor {get; set;}
[C++]
HRESULT get_SelectionColor(
IColor** Color
);
[C++]
HRESULT put_SelectionColor(
IColor* Color
);
[C++]
Parameters Color [out, retval]
Color is a parameter of type IColor Color [in]
Color is a parameter of type IColor
The color with which all selected features in the map are drawn.
Set this property when you wish to change the default selection color for all layers in the map. The ArcMap default selection color is cyan. This color applies to all layers within the map. If you want to use different selection colors for individual layers, use SelectionColor on ILayerDescription2. The default selection symbols for a map are: a circle for points, a solid line for lines and a hollow fill (solid outline) for polygons. If you want to change the selection symbol for a layer, use SelectionSymbol on ILayerDescription.