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


IColorRamp.Size Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IC > IColorRamp Interface > IColorRamp.Size Property
ArcGIS Developer Help

IColorRamp.Size Property

The number of colors that will be generated by the CreateRamp method.

[Visual Basic .NET]
Public Property Size As Integer
[C#]
public int Size {get; set;}
[C++]
HRESULT get_Size(
  long Count
);
[C++]
HRESULT put_Size(
  System.Int32* Count
);
[C++]
Parameters
Count [in]

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

Product Availability

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

Description

Size is the number of colors that will be generated when the CreateRamp method is used.

See Also

IColorRamp Interface

.NET Samples

Create a custom default raster catalog renderer Retrieve a color ramp from the SymbologyControl