ArcObjects Library Reference (Display)  

IPresetColorRamp.NumberOfPresetColors Property

The number of valid colors in the color ramp. This must equal 13 before you can get values from the ramp.

[Visual Basic .NET]
Public ReadOnly Property NumberOfPresetColors As Integer
[C#]
public int NumberOfPresetColors {get;}
[C++]
HRESULT get_NumberOfPresetColors(
  long* Count
);
[C++]

Parameters

Count [out, retval]   Count is a parameter of type long

Product Availability

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

Description

NumberOfPresetColors is the number of colors currently in an IPresetColorRamp . Since there are exactly 13 slots for colors, NumberOfPresetColors reports the number of slots that actually have a color assigned.

See Also

IPresetColorRamp Interface