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


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

IMultiPartColorRamp Interface

Provides access to members that control the MultiPartColorRamp. A color ramp defined by a list of constituent color ramps.

Product Availability

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

Description

IMultiPartColorRamp provides the framework for concatenating color ramps. After creating a MultiPartColorRamp object, you can add color ramps to it with the AddRamp method. You can add existing algorithmic, preset, random, or even other multipart color ramps.
A MultiPartColorRamp will try to use an equal number of colors from each member ramp to create its colors. You can check the number of ramps in a MultiPartColorRamp by reading the NumberOfRamps property.

Members

Name Description
Method AddRamp Adds a color ramp to the list.
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 NumberOfRamps The number of constituent color ramps.
Read/write property Ramp The color ramp at the index position.
Method RemoveRamp Removes the color ramp located 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 IMultiPartColorRamp

Classes Description
MultiPartColorRamp Defines a multi part color ramp, where ramp is defined by a list of constituent color ramps.

See Also

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