This method of the Direct3dRMDevice Class retrieves the number of shades in a ramp of colors used for shading.
public int getShades();
Returns the number of shades.
setShades