Sets the value of the "Gradient" attribute.
Namespace:
Imsl.Chart2D
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public virtual void SetGradient( Color colorLL, Color colorLR, Color colorUR, Color colorUL ) |
Visual Basic (Declaration) |
---|
Public Overridable Sub SetGradient ( _ colorLL As Color, _ colorLR As Color, _ colorUR As Color, _ colorUL As Color _ ) |
Visual C++ |
---|
public: virtual void SetGradient( Color colorLL, Color colorLR, Color colorUR, Color colorUL ) |
Parameters
- colorLL
- Type: System.Drawing..::.Color
A Color value which specifies the color of the lower left corner.
- colorLR
- Type: System.Drawing..::.Color
A Color value which specifies the color of the lower right corner.
- colorUR
- Type: System.Drawing..::.Color
A Color value which specifies the color of the upper right corner.
- colorUL
- Type: System.Drawing..::.Color
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 Values | Result |
---|---|
colorLL==colorLR and colorUL==colorUR | A vertical gradient is drawn. |
colorLL==colorUL and colorLR==colorUR | A horizontal gradient is drawn. |
colorLR== null and colorUL== null | A diagonal gradient is drawn. |
colorLL== null and colorUR== null | A diagonal gradient is drawn. |