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
public IEnumColors Colors {get;}
HRESULT get_Colors(
  IEnumColors** enumColors
enumColors [out, retval]

enumColors is a parameter of type IEnumColors**

Product Availability

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


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