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


IColorRamp Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IC > IColorRamp Interface (ArcObjects .NET 10.6 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

Name 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

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)