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


ILayerDescription.SelectionColor Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

ILayerDescription.SelectionColor Property

The selection color (used when SetSelectionSymbol=FALSE).

[Visual Basic .NET]
Public Property SelectionColor As IColor
[C#]
public IColor SelectionColor {get; set;}
[C++]
HRESULT get_SelectionColor(
  IColor** Color
);
[C++]
HRESULT putref_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 selected features for this particular layer are drawn.

Remarks

This property should be used when you want to apply a different selection color for an individual layer. If you wish to change the selection color for all layers you should use SelectionColor on IMapDescription2. If you wish to change the symbology of selected features you need to use SetSelectionSymbol and SelectionSymbol on the LayerDescription. 


SelectionColor on ILayerDescription overrides SelectionColor on IMapDescription. If SetSelectionSymbol is set to TRUE, SelectionColor will not be applied. Instead, the selection color of the symbol you specify (SelectionSymbol) will be used.

See Also

ILayerDescription Interface