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


IColorRamp.Colors Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IC > IColorRamp Interface > IColorRamp.Colors Property
ArcGIS Developer Help

IColorRamp.Colors Property

The list of colors. Call CreateRamp before calling this method.

[Visual Basic .NET]
Public ReadOnly Property Colors As IEnumColors
[C#]
public IEnumColors Colors {get;}
[C++]
HRESULT get_Colors(
  IEnumColors** enumColors
);
[C++]
Parameters
enumColors [out, retval]

enumColors is a parameter of type IEnumColors**

Product Availability

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

Description

Colors is how you can populate an IEnumColors object in order to easily retrieve the colors in a color ramp.

See Also

IColorRamp Interface

.NET Samples

Retrieve a color ramp from the SymbologyControl