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


IMapDescription2.SelectionColor Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapDescription2 Interface > IMapDescription2.SelectionColor Property
ArcGIS Developer Help

IMapDescription2.SelectionColor Property

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*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The color with which all selected features in the map are drawn.

Remarks

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.

See Also

IMapDescription2 Interface