public class GradientFill
Property Getters/Setters Summary | ||
---|---|---|
float | getAngle() | |
void | setAngle(floatvalue) | |
The angle of linear fill. | ||
int | getDirectionType() | |
Gets the gradient direction type.
The value of the property is GradientDirectionType integer constant. |
||
int | getFillType() | |
Gets the gradient fill type.
The value of the property is GradientFillType integer constant. |
||
com.aspose.cells.Color | getGradientColor1() | |
Gets gradient color 1. Applies to Excel97-2003
|
||
com.aspose.cells.Color | getGradientColor2() | |
Gets gradient color 2. Applies to Excel97-2003
|
||
int | getGradientColorType() | |
Gets gradient color type. Applies to Excel97-2003
The value of the property is GradientColorType integer constant. |
||
double | getGradientDegree() | |
Gets gradient degree. Applies to Excel97-2003
|
||
GradientStopCollection | getGradientStops() | |
Represents the gradient stop collection.
|
||
int | getGradientStyle() | |
Gets gradint style type. Applies to Excel97-2003
The value of the property is GradientStyleType integer constant. |
||
int | getPresetColor() | |
void | setPresetColor(intvalue) | |
Returns the gradient preset color for the the specified fill. Applies to Excel97-2003 The value of the property is GradientPresetType integer constant. | ||
int | getVariant() | |
Gets variant. Applies to Excel97-2003
|
Method Summary | ||
---|---|---|
void | setGradient(int type, double angle, int direction) | |
Set the gradient fill type and direction.
|
||
void | setOneColorGradient(com.aspose.cells.Color color, double degree, int style, int variant) | |
Sets the specified fill to a one-color gradient.
Only applies for Excel 2007.
|
||
void | setPresetColorGradient(int presetColor, int style, int variant) | |
Sets the specified fill to a preset-color gradient.
Only applies for Excel 97-2003
|
||
void | setTwoColorGradient(com.aspose.cells.Color color1, com.aspose.cells.Color color2, int style, int variant) | |
Sets the specified fill to a two-color gradient.
Only applies for Excel 2007.
|
||
void | setTwoColorGradient(com.aspose.cells.Color color1, double transparency1, com.aspose.cells.Color color2, double transparency2, int style, int variant) | |
Sets the specified fill to a two-color gradient.
Only applies for Excel 2007.
|
public GradientStopCollection getGradientStops()
public int getFillType()
public int getDirectionType()
public float getAngle() / public void setAngle(float value)
public com.aspose.cells.Color getGradientColor1()
public com.aspose.cells.Color getGradientColor2()
public double getGradientDegree()
public int getGradientColorType()
public int getPresetColor() / public void setPresetColor(int value)
public int getVariant()
public int getGradientStyle()
public void setGradient(int type, double angle, int direction)
type
- A angle
- The angle. Only applies for GradientFillType.Linear. direction
- A public void setPresetColorGradient(int presetColor, int style, int variant)
presetColor
- A style
- A variant
- The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.public void setOneColorGradient(com.aspose.cells.Color color, double degree, int style, int variant)
color
- One gradient color.degree
- The gradient degree. Can be a value from 0.0 (dark) through 1.0 (light).style
- A variant
- The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.public void setTwoColorGradient(com.aspose.cells.Color color1, com.aspose.cells.Color color2, int style, int variant)
color1
- One gradient color.color2
- Two gradient color.style
- A variant
- The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.public void setTwoColorGradient(com.aspose.cells.Color color1, double transparency1, com.aspose.cells.Color color2, double transparency2, int style, int variant)
color1
- One gradient color.transparency1
- The degree of transparency of the color1 as a value from 0.0 (opaque) through 1.0 (clear).color2
- Two gradient color.transparency2
- The degree of transparency of the color2 as a value from 0.0 (opaque) through 1.0 (clear).style
- A variant
- The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2.