IMSL C# Numerical Library

ChartNode.SetGradient Method (Color, Color, Color, Color)

Sets the value of the "Gradient" attribute.

public virtual void SetGradient(
   Color colorLL,
   Color colorLR,
   Color colorUR,
   Color colorUL
);

Parameters

colorLL
A Color value which specifies the color of the lower left corner.
colorLR
A Color value which specifies the color of the lower right corner.
colorUR
A Color value which specifies the color of the upper right corner.
colorUL
A Color value which specifies the color of the upper left corner.

Remarks

This attribute defines a color gradient used to fill regions. Only two of the four colors given are actually used.

Parameter ValuesResult
colorLL==colorLR and colorUL==colorURA vertical gradient is drawn.
colorLL==colorUL and colorLR==colorURA horizontal gradient is drawn.
colorLR== null and colorUL== nullA diagonal gradient is drawn.
colorLL== null and colorUR== nullA diagonal gradient is drawn.

See Also

ChartNode Class | Imsl.Chart2D Namespace | ChartNode.SetGradient Overload List