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