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 gradient 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 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 | equals(obj) | |
/
|
||
function | hashCode() | |
Gets the hash code.
|
||
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.
|
function getGradientStops()
function getFillType()
function getDirectionType()
function getAngle() / function setAngle(value)
function getGradientColor1()
function getGradientColor2()
function getGradientDegree()
function getGradientColorType()
function getPresetColor() / function setPresetColor(value)
function getVariant()
function getGradientStyle()
function setGradient(type, angle, direction)
type: Number
- A angle: Number
- The angle. Only applies for GradientFillType.Linear. direction: Number
- A 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.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.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.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.function equals(obj)
obj: Object
- function hashCode()