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


IPresetColorRamp.NumberOfPresetColors Property (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 > IPresetColorRamp.NumberOfPresetColors Property
ArcGIS Developer Help

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(
  System.Int32* 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