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


IPresetColorRamp Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IP > IPresetColorRamp Interface
ArcGIS Developer Help

IPresetColorRamp Interface

Provides access to members that control the PresetColorRamp. A color ramp that must contain exactly 13 preset colors.

Product Availability

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

Description

IPresetColorRamp is designed to exactly mimic the behavior of ArcView 3.x's color ramps. Thus, it contains exactly 13 colors in a sequence that is defined by the order the colors are defined.

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-only property NumberOfPresetColors The number of valid colors in the color ramp. This must equal 13 before you can get values from the ramp.
Read/write property PresetColor The color at the index position.
Read/write property Size The number of colors that will be generated by the CreateRamp method.

Inherited Interfaces

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

Classes that implement IPresetColorRamp

Classes Description
PresetColorRamp Defines a preset color ramp, where ramp is defined by a list of exactly 13 manually specified colors.

See Also

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