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 gradint 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 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 | 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. |
Property Getters/Setters Detail |
---|
getGradientStops : GradientStopCollection | |
GradientStopCollection getGradientStops() |
getFillType : int | |
int getFillType() |
getDirectionType : int | |
int getDirectionType() |
getAngle/setAngle : float | |
float getAngle() / setAngle(value) |
getGradientColor1 : Color | |
Color getGradientColor1() |
getGradientColor2 : Color | |
Color getGradientColor2() |
getGradientDegree : float | |
float getGradientDegree() |
getGradientColorType : int | |
int getGradientColorType() |
getPresetColor/setPresetColor : int | |
int getPresetColor() / setPresetColor(value) |
getVariant : int | |
int getVariant() |
getGradientStyle : int | |
int getGradientStyle() |
Method Detail |
---|
setGradient | |
setGradient(type, angle, direction) |
type: int
- A angle: float
- The angle. Only applies for GradientFillType.Linear. direction: int
- A setPresetColorGradient | |
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 | |
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 | |
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 | |
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.