aspose.cells

Class TwoColorGradient

Represents two color gradient.

Constructor Summary
TwoColorGradient(color1, color2, gradientStyleType, variant)
 
Property Getters/Setters Summary
functiongetColor1()
function
setColor1(value)
           Gets and sets the first gradient color.
functiongetColor2()
function
setColor2(value)
           Gets and sets the second gradient color.
functiongetGradientStyleType()
function
           Gets and sets gradient shading style. The value of the property is GradientStyleType integer constant.
functiongetVariant()
function
setVariant(value)
           Gets and sets the gradient variant.
 

    • Constructor Detail

      • TwoColorGradient

        function TwoColorGradient(color1, color2, gradientStyleType, variant)
        Parameters:
        color1: Color -
        color2: Color -
        gradientStyleType: Number - A GradientStyleType value.
        variant: Number -
    • Property Getters/Setters Detail

      • getColor1/setColor1 : Color 

        function getColor1() / function setColor1(value)
        
        Gets and sets the first gradient color.
      • getColor2/setColor2 : Color 

        function getColor2() / function setColor2(value)
        
        Gets and sets the second gradient color.
      • getGradientStyleType/setGradientStyleType : Number 

        function getGradientStyleType() / function setGradientStyleType(value)
        
        Gets and sets gradient shading style. The value of the property is GradientStyleType integer constant.
      • getVariant/setVariant : Number 

        function getVariant() / function setVariant(value)
        
        Gets and sets the gradient variant.