ig.excel.ChartGradientFill
Dependencies
-
ig.excel.ChartGradientFill
Constructor- new $.ig.excel.ChartGradientFill( gradientType:ig.excel.GradientType, stops:ig.IEnumerable`1, [angle:number] );
Creates a new ChartGradientFill instance.
- gradientType
- Type:ig.excel.GradientType
- A GradientType constant which defines the type of gradient, i.e., linear, circular, rectangular, etc.
- stops
- Type:ig.IEnumerable`1
- An enumerable list of GradientStop instances which define the location and color of each transition point in the gradient.
- angle
- Type:number
- Optional
- The angle defining the path along which the gradient extends; applies only to linear gradients. This parameter is optional and defaults to 0.
-
angle
- .angle( );
Returns the angle defining the path along which the gradient extends; applicable only for linear gradients.
Remarks
This property only applies to linear gradients.
This property defines the angle the gradient path makes with the horizontal plane.
For example, a gradient which extends from left to right can be changed to extend from bottom to top by setting this property to 90 degrees.
A value of 45 degrees yields a gradient which extends from the bottom left corner of the containing element to the top right corner.
-
getStops
- .getStops( );
- Return Type:
- ig.IEnumerable`1
- Return Type Description:
- An array of GradientStop instances.
Returns an enumerable list containing each GradientStop associated with this gradient, ordered by their GradientStop.position.
-
gradientType
- .gradientType( );
Defines the style for the gradient.