ArcObjects Library Reference (Display)  

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 (Code Files: SymbolForm)

.NET Related Topics

Defining a renderer for a layer