This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILayerDescription Interface > ILayerDescription.SelectionColor Property (ArcObjects .NET 10.4 SDK) |
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
The color with which selected features for this particular layer are drawn.
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.