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


IColorRamp Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Display)  

IColorRamp Interface

Provides access to the methods and properties common to all color ramp objects.

Product Availability

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

Description

IColorRamp maintains information about the way equal steps are derived between two or more colors, or how to randomly or sequentially derived colors from a list of predefined colors, or from the color gamut. The IColorRamp interface provides the basic functions for all color ramps in ArcMap.

Members

Description
Read-only property Color The color at the given index position. Call CreateRamp before calling this method.
Read-only property Colors The list of colors. Call CreateRamp before calling this method.
Method CreateRamp Generates a color ramp with length determined by Size value.
Read/write property Name The name of the color ramp.
Read/write property Size The number of colors that will be generated by the CreateRamp method.

CoClasses that implement IColorRamp

CoClasses and Classes Description
AlgorithmicColorRamp Defines an algorithmic color ramp, where ramp is defined by two colors and the algorithm used to traverse the intervening color space between them.
MultiPartColorRamp Defines a multi part color ramp, where ramp is defined by a list of constituent color ramps.
PresetColorRamp Defines a preset color ramp, where ramp is defined by a list of exactly 13 manually specified colors.
RandomColorRamp Defines a random color ramp, where ramp is a list of randomly picked colors.

See Also

IMultiPartColorRamp Interface | IColorRamp.Color Property | IColorRamp.CreateRamp Method | IRandomColorRamp Interface | IColorRamp Interface | IPresetColorRamp Interface | IAlgorithmicColorRamp Interface | ColorRampStyleGalleryClass Class

.NET Samples

Retrieve a color ramp from the SymbologyControl (Code Files: SymbolForm)