aspose.cells

Class CellsColor

Represents all types of color.

Property Getters/Setters Summary
functiongetArgb()
function
setArgb(value)
           Gets and sets the color from a 32-bit ARGB value.
functiongetColor()
function
setColor(value)
           Gets and sets the RGB color.
functiongetColorIndex()
function
           Gets and sets the color index in the color palette. Only applies of indexed color.
functionisShapeColor()
function
           Gets and set the color which should apply to cell or shape.
functiongetThemeColor()
function
           Gets the theme color. Only applies for theme color type.
functiongetTransparency()
function
           Gets and sets transparency as a value from 0.0 (opaque) through 1.0 (clear).
functiongetType()
The color type. The value of the property is ColorType integer constant.
 
Method Summary
functionsetTintOfShapeColor(tint)
Set the tint of the shape color
 

    • Property Getters/Setters Detail

      • isShapeColor/setShapeColor : boolean 

        function isShapeColor() / function setShapeColor(value)
        
        Gets and set the color which should apply to cell or shape. The expression of the color of the cell and the shape is different. For example: the theme color with same tint value will be not same in the cell and the shape.
      • getType : Number 

        function getType()
        
        The color type. The value of the property is ColorType integer constant.
      • getThemeColor/setThemeColor : ThemeColor 

        function getThemeColor() / function setThemeColor(value)
        
        Gets the theme color. Only applies for theme color type.
      • getColorIndex/setColorIndex : Number 

        function getColorIndex() / function setColorIndex(value)
        
        Gets and sets the color index in the color palette. Only applies of indexed color.
      • getColor/setColor : Color 

        function getColor() / function setColor(value)
        
        Gets and sets the RGB color.
      • getArgb/setArgb : Number 

        function getArgb() / function setArgb(value)
        
        Gets and sets the color from a 32-bit ARGB value.
      • getTransparency/setTransparency : Number 

        function getTransparency() / function setTransparency(value)
        
        Gets and sets transparency as a value from 0.0 (opaque) through 1.0 (clear).
    • Method Detail

      • setTintOfShapeColor

        function setTintOfShapeColor(tint)
        Set the tint of the shape color
        Parameters:
        tint: Number -