Property Getters/Setters Summary | ||
---|---|---|
method | getAngle() | |
method | setAngle(value) | |
The angle of linear fill. | ||
method | getDirectionType() | |
Gets the gradient direction type.
The value of the property is GradientDirectionType integer constant. |
||
method | getFillType() | |
Gets the gradient fill type.
The value of the property is GradientFillType integer constant. |
||
method | getGradientColor1() | |
Gets gradient color 1. Applies to Excel97-2003
|
||
method | getGradientColor2() | |
Gets gradient color 2. Applies to Excel97-2003
|
||
method | getGradientColorType() | |
Gets gradient color type. Applies to Excel97-2003
The value of the property is GradientColorType integer constant. |
||
method | getGradientDegree() | |
Gets gradient degree. Applies to Excel97-2003
|
||
method | getGradientStops() | |
Represents the gradient stop collection.
|
||
method | getGradientStyle() | |
Gets gradient style type. Applies to Excel97-2003
The value of the property is GradientStyleType integer constant. |
||
method | getPresetColor() | |
method | setPresetColor(value) | |
Returns the gradient preset color for the specified fill. Applies to Excel97-2003 The value of the property is GradientPresetType integer constant. | ||
method | getVariant() | |
Gets variant. Applies to Excel97-2003
|
Method Summary | ||
---|---|---|
method | equals(obj) | |
/
|
||
method | hashCode() | |
Gets the hash code.
|
||
method | setGradient(type, angle, direction) | |
Set the gradient fill type and direction.
|
||
method | setOneColorGradient(color, degree, style, variant) | |
Sets the specified fill to a one-color gradient.
Only applies for Excel 2007.
|
||
method | setPresetColorGradient(presetColor, style, variant) | |
Sets the specified fill to a preset-color gradient.
Only applies for Excel 97-2003
|
||
method | setTwoColorGradient(color1, color2, style, variant) | |
Sets the specified fill to a two-color gradient.
Only applies for Excel 2007.
|
||
method | setTwoColorGradient(color1, transparency1, color2, transparency2, style, variant) | |
Sets the specified fill to a two-color gradient.
Only applies for Excel 2007.
|
GradientStopCollection getGradientStops()
int getFillType()
int getDirectionType()
float getAngle() / setAngle(value)
Color getGradientColor1()
Color getGradientColor2()
float getGradientDegree()
int getGradientColorType()
int getPresetColor() / setPresetColor(value)
int getVariant()
int getGradientStyle()
setGradient(type, angle, direction)
type: int
- A angle: float
- The angle. Only applies for GradientFillType.Linear. direction: int
- A setPresetColorGradient(presetColor, style, variant)
presetColor: int
- A style: int
- A variant: int
- 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.setOneColorGradient(color, degree, style, variant)
color: Color
- One gradient color.degree: float
- The gradient degree. Can be a value from 0.0 (dark) through 1.0 (light).style: int
- A variant: int
- 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.setTwoColorGradient(color1, color2, style, variant)
color1: Color
- One gradient color.color2: Color
- Two gradient color.style: int
- A variant: int
- 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.setTwoColorGradient(color1, transparency1, color2, transparency2, style, variant)
color1: Color
- One gradient color.transparency1: float
- The degree of transparency of the color1 as a value from 0.0 (opaque) through 1.0 (clear).color2: Color
- Two gradient color.transparency2: float
- The degree of transparency of the color2 as a value from 0.0 (opaque) through 1.0 (clear).style: int
- A variant: int
- 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.boolean equals(obj)
obj: Object
- int hashCode()