[]
        
(Showing Draft Content)

Color

Class Color

java.lang.Object
com.grapecity.documents.excel.Color

public final class Color extends Object
Represents a color value used by GcExcel.

A Color can be empty, a predefined named color, or a color created from ARGB component values. Use new Color() or Color.Empty to represent an empty color, use FromArgb(...) to create a color from component values, or use predefined color methods such as GetRed().


 Color color = Color.FromArgb(255, 0, 0);
 worksheet.getRange("A1").getInterior().setColor(color);

 Color namedColor = Color.GetBlue();
 worksheet.getRange("A2").getFont().setColor(namedColor);
 
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an empty color.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Tests whether the specified object is a Color structure and is equivalent to this Color structure.
    static Color
    FromArgb(int argb)
    Creates a Color from a 32-bit ARGB value.
    static Color
    FromArgb(int red, int green, int blue)
    Creates an opaque Color from red, green, and blue component values.
    static Color
    FromArgb(int alpha, int red, int green, int blue)
    Creates a Color from alpha, red, green, and blue component values.
    static Color
    FromArgb(int alpha, Color baseColor)
    Creates a Color by applying the specified alpha component to an existing color.
    int
    Gets the alpha component value of the color.
    static Color
    Gets a predefined named color with the ARGB value #FFF0F8FF.
    static Color
    Gets a predefined named color with the ARGB value #FFFAEBD7.
    static Color
    Gets a predefined named color with the ARGB value #FF00FFFF.
    static Color
    Gets a predefined named color with the ARGB value #FF7FFFD4.
    static Color
    Gets a predefined named color with the ARGB value #FFF0FFFF.
    int
    Gets the blue component value of the color.
    static Color
    Gets a predefined named color with the ARGB value #FFF5F5DC.
    static Color
    Gets a predefined named color with the ARGB value #FFFFE4C4.
    static Color
    Gets a predefined named color with the ARGB value #FF000000.
    static Color
    Gets a predefined named color with the ARGB value #FFFFEBCD.
    static Color
    Gets a predefined named color with the ARGB value #FF0000FF.
    static Color
    Gets a predefined named color with the ARGB value #FF8A2BE2.
    float
    Gets the HSB brightness value of this color.
    static Color
    Gets a predefined named color with the ARGB value #FFA52A2A.
    static Color
    Gets a predefined named color with the ARGB value #FFDEB887.
    static Color
    Gets a predefined named color with the ARGB value #FF5F9EA0.
    static Color
    Gets a predefined named color with the ARGB value #FF7FFF00.
    static Color
    Gets a predefined named color with the ARGB value #FFD2691E.
    static Color
    Gets a predefined named color with the ARGB value #FFFF7F50.
    static Color
    Gets a predefined named color with the ARGB value #FF6495ED.
    static Color
    Gets a predefined named color with the ARGB value #FFFFF8DC.
    static Color
    Gets a predefined named color with the ARGB value #FFDC143C.
    static Color
    Gets a predefined named color with the ARGB value #FF00FFFF.
    static Color
    Gets a predefined named color with the ARGB value #FF00008B.
    static Color
    Gets a predefined named color with the ARGB value #FF008B8B.
    static Color
    Gets a predefined named color with the ARGB value #FFB8860B.
    static Color
    Gets a predefined named color with the ARGB value #FFA9A9A9.
    static Color
    Gets a predefined named color with the ARGB value #FF006400.
    static Color
    Gets a predefined named color with the ARGB value #FFBDB76B.
    static Color
    Gets a predefined named color with the ARGB value #FF8B008B.
    static Color
    Gets a predefined named color with the ARGB value #FF556B2F.
    static Color
    Gets a predefined named color with the ARGB value #FFFF8C00.
    static Color
    Gets a predefined named color with the ARGB value #FF9932CC.
    static Color
    Gets a predefined named color with the ARGB value #FF8B0000.
    static Color
    Gets a predefined named color with the ARGB value #FFE9967A.
    static Color
    Gets a predefined named color with the ARGB value #FF8FBC8B.
    static Color
    Gets a predefined named color with the ARGB value #FF483D8B.
    static Color
    Gets a predefined named color with the ARGB value #FF2F4F4F.
    static Color
    Gets a predefined named color with the ARGB value #FF00CED1.
    static Color
    Gets a predefined named color with the ARGB value #FF9400D3.
    static Color
    Gets a predefined named color with the ARGB value #FFFF1493.
    static Color
    Gets a predefined named color with the ARGB value #FF00BFFF.
    static Color
    Gets a predefined named color with the ARGB value #FF696969.
    static Color
    Gets a predefined named color with the ARGB value #FF1E90FF.
    static Color
    Gets a predefined named color with the ARGB value #FFB22222.
    static Color
    Gets a predefined named color with the ARGB value #FFFFFAF0.
    static Color
    Gets a predefined named color with the ARGB value #FF228B22.
    static Color
    Gets a predefined named color with the ARGB value #FFFF00FF.
    int
    Gets the green component value of the color.
    static Color
    Gets a predefined named color with the ARGB value #FFDCDCDC.
    static Color
    Gets a predefined named color with the ARGB value #FFF8F8FF.
    static Color
    Gets a predefined named color with the ARGB value #FFFFD700.
    static Color
    Gets a predefined named color with the ARGB value #FFDAA520.
    static Color
    Gets a predefined named color with the ARGB value #FF808080.
    static Color
    Gets a predefined named color with the ARGB value #FF008000.
    static Color
    Gets a predefined named color with the ARGB value #FFADFF2F.
    static Color
    Gets a predefined named color with the ARGB value #FFF0FFF0.
    static Color
    Gets a predefined named color with the ARGB value #FFFF69B4.
    float
    Gets the HSB hue value of this color, in degrees.
    static Color
    Gets a predefined named color with the ARGB value #FFCD5C5C.
    static Color
    Gets a predefined named color with the ARGB value #FF4B0082.
    boolean
    Gets whether this color is empty.
    boolean
    Gets whether this color is a predefined named color.
    static Color
    Gets a predefined named color with the ARGB value #FFFFFFF0.
    static Color
    Gets a predefined named color with the ARGB value #FFF0E68C.
    static Color
    Gets a predefined named color with the ARGB value #FFE6E6FA.
    static Color
    Gets a predefined named color with the ARGB value #FFFFF0F5.
    static Color
    Gets a predefined named color with the ARGB value #FF7CFC00.
    static Color
    Gets a predefined named color with the ARGB value #FFFFFACD.
    static Color
    Gets a predefined named color with the ARGB value #FFADD8E6.
    static Color
    Gets a predefined named color with the ARGB value #FFF08080.
    static Color
    Gets a predefined named color with the ARGB value #FFE0FFFF.
    static Color
    Gets a predefined named color with the ARGB value #FFFAFAD2.
    static Color
    Gets a predefined named color with the ARGB value #FFD3D3D3.
    static Color
    Gets a predefined named color with the ARGB value #FF90EE90.
    static Color
    Gets a predefined named color with the ARGB value #FFFFB6C1.
    static Color
    Gets a predefined named color with the ARGB value #FFFFA07A.
    static Color
    Gets a predefined named color with the ARGB value #FF20B2AA.
    static Color
    Gets a predefined named color with the ARGB value #FF87CEFA.
    static Color
    Gets a predefined named color with the ARGB value #FF778899.
    static Color
    Gets a predefined named color with the ARGB value #FFB0C4DE.
    static Color
    Gets a predefined named color with the ARGB value #FFFFFFE0.
    static Color
    Gets a predefined named color with the ARGB value #FF00FF00.
    static Color
    Gets a predefined named color with the ARGB value #FF32CD32.
    static Color
    Gets a predefined named color with the ARGB value #FFFAF0E6.
    static Color
    Gets a predefined named color with the ARGB value #FFFF00FF.
    static Color
    Gets a predefined named color with the ARGB value #FF800000.
    static Color
    Gets a predefined named color with the ARGB value #FF66CDAA.
    static Color
    Gets a predefined named color with the ARGB value #FF0000CD.
    static Color
    Gets a predefined named color with the ARGB value #FFBA55D3.
    static Color
    Gets a predefined named color with the ARGB value #FF9370DB.
    static Color
    Gets a predefined named color with the ARGB value #FF3CB371.
    static Color
    Gets a predefined named color with the ARGB value #FF7B68EE.
    static Color
    Gets a predefined named color with the ARGB value #FF00FA9A.
    static Color
    Gets a predefined named color with the ARGB value #FF48D1CC.
    static Color
    Gets a predefined named color with the ARGB value #FFC71585.
    static Color
    Gets a predefined named color with the ARGB value #FF191970.
    static Color
    Gets a predefined named color with the ARGB value #FFF5FFFA.
    static Color
    Gets a predefined named color with the ARGB value #FFFFE4E1.
    static Color
    Gets a predefined named color with the ARGB value #FFFFE4B5.
    Gets the name of this color.
    static Color
    Gets a predefined named color with the ARGB value #FFFFDEAD.
    static Color
    Gets a predefined named color with the ARGB value #FF000080.
    static Color
    Gets a predefined named color with the ARGB value #FFFDF5E6.
    static Color
    Gets a predefined named color with the ARGB value #FF808000.
    static Color
    Gets a predefined named color with the ARGB value #FF6B8E23.
    static Color
    Gets a predefined named color with the ARGB value #FFFFA500.
    static Color
    Gets a predefined named color with the ARGB value #FFFF4500.
    static Color
    Gets a predefined named color with the ARGB value #FFDA70D6.
    static Color
    Gets a predefined named color with the ARGB value #FFEEE8AA.
    static Color
    Gets a predefined named color with the ARGB value #FF98FB98.
    static Color
    Gets a predefined named color with the ARGB value #FFAFEEEE.
    static Color
    Gets a predefined named color with the ARGB value #FFDB7093.
    static Color
    Gets a predefined named color with the ARGB value #FFFFEFD5.
    static Color
    Gets a predefined named color with the ARGB value #FFFFDAB9.
    static Color
    Gets a predefined named color with the ARGB value #FFCD853F.
    static Color
    Gets a predefined named color with the ARGB value #FFFFC0CB.
    static Color
    Gets a predefined named color with the ARGB value #FFDDA0DD.
    static Color
    Gets a predefined named color with the ARGB value #FFB0E0E6.
    static Color
    Gets a predefined named color with the ARGB value #FF800080.
    int
    Gets the red component value of the color.
    static Color
    Gets a predefined named color with the ARGB value #FFFF0000.
    static Color
    Gets a predefined named color with the ARGB value #FFBC8F8F.
    static Color
    Gets a predefined named color with the ARGB value #FF4169E1.
    static Color
    Gets a predefined named color with the ARGB value #FF8B4513.
    static Color
    Gets a predefined named color with the ARGB value #FFFA8072.
    static Color
    Gets a predefined named color with the ARGB value #FFF4A460.
    float
    Gets the HSB saturation value of this color.
    static Color
    Gets a predefined named color with the ARGB value #FF2E8B57.
    static Color
    Gets a predefined named color with the ARGB value #FFFFF5EE.
    static Color
    Gets a predefined named color with the ARGB value #FFA0522D.
    static Color
    Gets a predefined named color with the ARGB value #FFC0C0C0.
    static Color
    Gets a predefined named color with the ARGB value #FF87CEEB.
    static Color
    Gets a predefined named color with the ARGB value #FF6A5ACD.
    static Color
    Gets a predefined named color with the ARGB value #FF708090.
    static Color
    Gets a predefined named color with the ARGB value #FFFFFAFA.
    static Color
    Gets a predefined named color with the ARGB value #FF00FF7F.
    static Color
    Gets a predefined named color with the ARGB value #FF4682B4.
    static Color
    Gets a predefined named color with the ARGB value #FFD2B48C.
    static Color
    Gets a predefined named color with the ARGB value #FF008080.
    static Color
    Gets a predefined named color with the ARGB value #FFD8BFD8.
    static Color
    Gets a predefined named color with the ARGB value #FFFF6347.
    static Color
    Gets a predefined named color with the ARGB value #00FFFFFF.
    static Color
    Gets a predefined named color with the ARGB value #FF40E0D0.
    static Color
    Gets a predefined named color with the ARGB value #FFEE82EE.
    static Color
    Gets a predefined named color with the ARGB value #FFF5DEB3.
    static Color
    Gets a predefined named color with the ARGB value #FFFFFFFF.
    static Color
    Gets a predefined named color with the ARGB value #FFF5F5F5.
    static Color
    Gets the system window color.
    static Color
    Gets the system window text color.
    static Color
    Gets a predefined named color with the ARGB value #FFFFFF00.
    static Color
    Gets a predefined named color with the ARGB value #FF9ACD32.
    int
    Returns a hash code for this instance.
    int
    Returns the 32-bit ARGB value of this color.
    Returns a string representation of this Color.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Color

      public Color()
      Creates an empty color.
      
       Color color = new Color();
       boolean isEmpty = color.getIsEmpty();
       
  • Method Details

    • GetTransparent

      public static Color GetTransparent()
      Gets a predefined named color with the ARGB value #00FFFFFF.
      
       Color transparent = Color.GetTransparent();
       worksheet.getRange("A1").getInterior().setColor(transparent);
       
      Returns:
      A predefined named color with the ARGB value #00FFFFFF.
    • GetAliceBlue

      public static Color GetAliceBlue()
      Gets a predefined named color with the ARGB value #FFF0F8FF.
      
       Color color = Color.GetAliceBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFF0F8FF.
    • GetAntiqueWhite

      public static Color GetAntiqueWhite()
      Gets a predefined named color with the ARGB value #FFFAEBD7.
      
       Color color = Color.GetAntiqueWhite();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFAEBD7.
    • GetAqua

      public static Color GetAqua()
      Gets a predefined named color with the ARGB value #FF00FFFF.
      
       Color color = Color.GetAqua();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF00FFFF.
    • GetAquamarine

      public static Color GetAquamarine()
      Gets a predefined named color with the ARGB value #FF7FFFD4.
      
       Color color = Color.GetAquamarine();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF7FFFD4.
    • GetAzure

      public static Color GetAzure()
      Gets a predefined named color with the ARGB value #FFF0FFFF.
      
       Color color = Color.GetAzure();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFF0FFFF.
    • GetBeige

      public static Color GetBeige()
      Gets a predefined named color with the ARGB value #FFF5F5DC.
      
       Color color = Color.GetBeige();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFF5F5DC.
    • GetBisque

      public static Color GetBisque()
      Gets a predefined named color with the ARGB value #FFFFE4C4.
      
       Color color = Color.GetBisque();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFE4C4.
    • GetBlack

      public static Color GetBlack()
      Gets a predefined named color with the ARGB value #FF000000.
      
       Color color = Color.GetBlack();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF000000.
    • GetWindow

      public static Color GetWindow()
      Gets the system window color.
      
       Color window = Color.GetWindow();
       worksheet.getRange("A1").getInterior().setColor(window);
       
      Returns:
      The system window color.
    • GetWindowText

      public static Color GetWindowText()
      Gets the system window text color.
      
       Color windowText = Color.GetWindowText();
       worksheet.getRange("A1").getInterior().setColor(windowText);
       
      Returns:
      The system window text color.
    • GetBlanchedAlmond

      public static Color GetBlanchedAlmond()
      Gets a predefined named color with the ARGB value #FFFFEBCD.
      
       Color color = Color.GetBlanchedAlmond();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFEBCD.
    • GetBlue

      public static Color GetBlue()
      Gets a predefined named color with the ARGB value #FF0000FF.
      
       Color color = Color.GetBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF0000FF.
    • GetBlueViolet

      public static Color GetBlueViolet()
      Gets a predefined named color with the ARGB value #FF8A2BE2.
      
       Color color = Color.GetBlueViolet();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF8A2BE2.
    • GetBrown

      public static Color GetBrown()
      Gets a predefined named color with the ARGB value #FFA52A2A.
      
       Color color = Color.GetBrown();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFA52A2A.
    • GetBurlyWood

      public static Color GetBurlyWood()
      Gets a predefined named color with the ARGB value #FFDEB887.
      
       Color color = Color.GetBurlyWood();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFDEB887.
    • GetCadetBlue

      public static Color GetCadetBlue()
      Gets a predefined named color with the ARGB value #FF5F9EA0.
      
       Color color = Color.GetCadetBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF5F9EA0.
    • GetChartreuse

      public static Color GetChartreuse()
      Gets a predefined named color with the ARGB value #FF7FFF00.
      
       Color color = Color.GetChartreuse();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF7FFF00.
    • GetChocolate

      public static Color GetChocolate()
      Gets a predefined named color with the ARGB value #FFD2691E.
      
       Color color = Color.GetChocolate();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFD2691E.
    • GetCoral

      public static Color GetCoral()
      Gets a predefined named color with the ARGB value #FFFF7F50.
      
       Color color = Color.GetCoral();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFF7F50.
    • GetCornflowerBlue

      public static Color GetCornflowerBlue()
      Gets a predefined named color with the ARGB value #FF6495ED.
      
       Color color = Color.GetCornflowerBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF6495ED.
    • GetCornsilk

      public static Color GetCornsilk()
      Gets a predefined named color with the ARGB value #FFFFF8DC.
      
       Color color = Color.GetCornsilk();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFF8DC.
    • GetCrimson

      public static Color GetCrimson()
      Gets a predefined named color with the ARGB value #FFDC143C.
      
       Color color = Color.GetCrimson();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFDC143C.
    • GetCyan

      public static Color GetCyan()
      Gets a predefined named color with the ARGB value #FF00FFFF.
      
       Color color = Color.GetCyan();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF00FFFF.
    • GetDarkBlue

      public static Color GetDarkBlue()
      Gets a predefined named color with the ARGB value #FF00008B.
      
       Color color = Color.GetDarkBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF00008B.
    • GetDarkCyan

      public static Color GetDarkCyan()
      Gets a predefined named color with the ARGB value #FF008B8B.
      
       Color color = Color.GetDarkCyan();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF008B8B.
    • GetDarkGoldenrod

      public static Color GetDarkGoldenrod()
      Gets a predefined named color with the ARGB value #FFB8860B.
      
       Color color = Color.GetDarkGoldenrod();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFB8860B.
    • GetDarkGray

      public static Color GetDarkGray()
      Gets a predefined named color with the ARGB value #FFA9A9A9.
      
       Color color = Color.GetDarkGray();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFA9A9A9.
    • GetDarkGreen

      public static Color GetDarkGreen()
      Gets a predefined named color with the ARGB value #FF006400.
      
       Color color = Color.GetDarkGreen();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF006400.
    • GetDarkKhaki

      public static Color GetDarkKhaki()
      Gets a predefined named color with the ARGB value #FFBDB76B.
      
       Color color = Color.GetDarkKhaki();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFBDB76B.
    • GetDarkMagenta

      public static Color GetDarkMagenta()
      Gets a predefined named color with the ARGB value #FF8B008B.
      
       Color color = Color.GetDarkMagenta();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF8B008B.
    • GetDarkOliveGreen

      public static Color GetDarkOliveGreen()
      Gets a predefined named color with the ARGB value #FF556B2F.
      
       Color color = Color.GetDarkOliveGreen();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF556B2F.
    • GetDarkOrange

      public static Color GetDarkOrange()
      Gets a predefined named color with the ARGB value #FFFF8C00.
      
       Color color = Color.GetDarkOrange();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFF8C00.
    • GetDarkOrchid

      public static Color GetDarkOrchid()
      Gets a predefined named color with the ARGB value #FF9932CC.
      
       Color color = Color.GetDarkOrchid();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF9932CC.
    • GetDarkRed

      public static Color GetDarkRed()
      Gets a predefined named color with the ARGB value #FF8B0000.
      
       Color color = Color.GetDarkRed();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF8B0000.
    • GetDarkSalmon

      public static Color GetDarkSalmon()
      Gets a predefined named color with the ARGB value #FFE9967A.
      
       Color color = Color.GetDarkSalmon();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFE9967A.
    • GetDarkSeaGreen

      public static Color GetDarkSeaGreen()
      Gets a predefined named color with the ARGB value #FF8FBC8B.
      
       Color color = Color.GetDarkSeaGreen();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF8FBC8B.
    • GetDarkSlateBlue

      public static Color GetDarkSlateBlue()
      Gets a predefined named color with the ARGB value #FF483D8B.
      
       Color color = Color.GetDarkSlateBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF483D8B.
    • GetDarkSlateGray

      public static Color GetDarkSlateGray()
      Gets a predefined named color with the ARGB value #FF2F4F4F.
      
       Color color = Color.GetDarkSlateGray();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF2F4F4F.
    • GetDarkTurquoise

      public static Color GetDarkTurquoise()
      Gets a predefined named color with the ARGB value #FF00CED1.
      
       Color color = Color.GetDarkTurquoise();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF00CED1.
    • GetDarkViolet

      public static Color GetDarkViolet()
      Gets a predefined named color with the ARGB value #FF9400D3.
      
       Color color = Color.GetDarkViolet();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF9400D3.
    • GetDeepPink

      public static Color GetDeepPink()
      Gets a predefined named color with the ARGB value #FFFF1493.
      
       Color color = Color.GetDeepPink();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFF1493.
    • GetDeepSkyBlue

      public static Color GetDeepSkyBlue()
      Gets a predefined named color with the ARGB value #FF00BFFF.
      
       Color color = Color.GetDeepSkyBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF00BFFF.
    • GetDimGray

      public static Color GetDimGray()
      Gets a predefined named color with the ARGB value #FF696969.
      
       Color color = Color.GetDimGray();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF696969.
    • GetDodgerBlue

      public static Color GetDodgerBlue()
      Gets a predefined named color with the ARGB value #FF1E90FF.
      
       Color color = Color.GetDodgerBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF1E90FF.
    • GetFirebrick

      public static Color GetFirebrick()
      Gets a predefined named color with the ARGB value #FFB22222.
      
       Color color = Color.GetFirebrick();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFB22222.
    • GetFloralWhite

      public static Color GetFloralWhite()
      Gets a predefined named color with the ARGB value #FFFFFAF0.
      
       Color color = Color.GetFloralWhite();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFFAF0.
    • GetForestGreen

      public static Color GetForestGreen()
      Gets a predefined named color with the ARGB value #FF228B22.
      
       Color color = Color.GetForestGreen();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF228B22.
    • GetFuchsia

      public static Color GetFuchsia()
      Gets a predefined named color with the ARGB value #FFFF00FF.
      
       Color color = Color.GetFuchsia();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFF00FF.
    • GetGainsboro

      public static Color GetGainsboro()
      Gets a predefined named color with the ARGB value #FFDCDCDC.
      
       Color color = Color.GetGainsboro();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFDCDCDC.
    • GetGhostWhite

      public static Color GetGhostWhite()
      Gets a predefined named color with the ARGB value #FFF8F8FF.
      
       Color color = Color.GetGhostWhite();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFF8F8FF.
    • GetGold

      public static Color GetGold()
      Gets a predefined named color with the ARGB value #FFFFD700.
      
       Color color = Color.GetGold();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFD700.
    • GetGoldenrod

      public static Color GetGoldenrod()
      Gets a predefined named color with the ARGB value #FFDAA520.
      
       Color color = Color.GetGoldenrod();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFDAA520.
    • GetGray

      public static Color GetGray()
      Gets a predefined named color with the ARGB value #FF808080.
      
       Color color = Color.GetGray();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF808080.
    • GetGreen

      public static Color GetGreen()
      Gets a predefined named color with the ARGB value #FF008000.
      
       Color color = Color.GetGreen();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF008000.
    • GetGreenYellow

      public static Color GetGreenYellow()
      Gets a predefined named color with the ARGB value #FFADFF2F.
      
       Color color = Color.GetGreenYellow();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFADFF2F.
    • GetHoneydew

      public static Color GetHoneydew()
      Gets a predefined named color with the ARGB value #FFF0FFF0.
      
       Color color = Color.GetHoneydew();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFF0FFF0.
    • GetHotPink

      public static Color GetHotPink()
      Gets a predefined named color with the ARGB value #FFFF69B4.
      
       Color color = Color.GetHotPink();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFF69B4.
    • GetIndianRed

      public static Color GetIndianRed()
      Gets a predefined named color with the ARGB value #FFCD5C5C.
      
       Color color = Color.GetIndianRed();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFCD5C5C.
    • GetIndigo

      public static Color GetIndigo()
      Gets a predefined named color with the ARGB value #FF4B0082.
      
       Color color = Color.GetIndigo();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF4B0082.
    • GetIvory

      public static Color GetIvory()
      Gets a predefined named color with the ARGB value #FFFFFFF0.
      
       Color color = Color.GetIvory();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFFFF0.
    • GetKhaki

      public static Color GetKhaki()
      Gets a predefined named color with the ARGB value #FFF0E68C.
      
       Color color = Color.GetKhaki();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFF0E68C.
    • GetLavender

      public static Color GetLavender()
      Gets a predefined named color with the ARGB value #FFE6E6FA.
      
       Color color = Color.GetLavender();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFE6E6FA.
    • GetLavenderBlush

      public static Color GetLavenderBlush()
      Gets a predefined named color with the ARGB value #FFFFF0F5.
      
       Color color = Color.GetLavenderBlush();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFF0F5.
    • GetLawnGreen

      public static Color GetLawnGreen()
      Gets a predefined named color with the ARGB value #FF7CFC00.
      
       Color color = Color.GetLawnGreen();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF7CFC00.
    • GetLemonChiffon

      public static Color GetLemonChiffon()
      Gets a predefined named color with the ARGB value #FFFFFACD.
      
       Color color = Color.GetLemonChiffon();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFFACD.
    • GetLightBlue

      public static Color GetLightBlue()
      Gets a predefined named color with the ARGB value #FFADD8E6.
      
       Color color = Color.GetLightBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFADD8E6.
    • GetLightCoral

      public static Color GetLightCoral()
      Gets a predefined named color with the ARGB value #FFF08080.
      
       Color color = Color.GetLightCoral();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFF08080.
    • GetLightCyan

      public static Color GetLightCyan()
      Gets a predefined named color with the ARGB value #FFE0FFFF.
      
       Color color = Color.GetLightCyan();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFE0FFFF.
    • GetLightGoldenrodYellow

      public static Color GetLightGoldenrodYellow()
      Gets a predefined named color with the ARGB value #FFFAFAD2.
      
       Color color = Color.GetLightGoldenrodYellow();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFAFAD2.
    • GetLightGray

      public static Color GetLightGray()
      Gets a predefined named color with the ARGB value #FFD3D3D3.
      
       Color color = Color.GetLightGray();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFD3D3D3.
    • GetLightGreen

      public static Color GetLightGreen()
      Gets a predefined named color with the ARGB value #FF90EE90.
      
       Color color = Color.GetLightGreen();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF90EE90.
    • GetLightPink

      public static Color GetLightPink()
      Gets a predefined named color with the ARGB value #FFFFB6C1.
      
       Color color = Color.GetLightPink();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFB6C1.
    • GetLightSalmon

      public static Color GetLightSalmon()
      Gets a predefined named color with the ARGB value #FFFFA07A.
      
       Color color = Color.GetLightSalmon();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFA07A.
    • GetLightSeaGreen

      public static Color GetLightSeaGreen()
      Gets a predefined named color with the ARGB value #FF20B2AA.
      
       Color color = Color.GetLightSeaGreen();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF20B2AA.
    • GetLightSkyBlue

      public static Color GetLightSkyBlue()
      Gets a predefined named color with the ARGB value #FF87CEFA.
      
       Color color = Color.GetLightSkyBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF87CEFA.
    • GetLightSlateGray

      public static Color GetLightSlateGray()
      Gets a predefined named color with the ARGB value #FF778899.
      
       Color color = Color.GetLightSlateGray();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF778899.
    • GetLightSteelBlue

      public static Color GetLightSteelBlue()
      Gets a predefined named color with the ARGB value #FFB0C4DE.
      
       Color color = Color.GetLightSteelBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFB0C4DE.
    • GetLightYellow

      public static Color GetLightYellow()
      Gets a predefined named color with the ARGB value #FFFFFFE0.
      
       Color color = Color.GetLightYellow();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFFFE0.
    • GetLime

      public static Color GetLime()
      Gets a predefined named color with the ARGB value #FF00FF00.
      
       Color color = Color.GetLime();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF00FF00.
    • GetLimeGreen

      public static Color GetLimeGreen()
      Gets a predefined named color with the ARGB value #FF32CD32.
      
       Color color = Color.GetLimeGreen();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF32CD32.
    • GetLinen

      public static Color GetLinen()
      Gets a predefined named color with the ARGB value #FFFAF0E6.
      
       Color color = Color.GetLinen();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFAF0E6.
    • GetMagenta

      public static Color GetMagenta()
      Gets a predefined named color with the ARGB value #FFFF00FF.
      
       Color color = Color.GetMagenta();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFF00FF.
    • GetMaroon

      public static Color GetMaroon()
      Gets a predefined named color with the ARGB value #FF800000.
      
       Color color = Color.GetMaroon();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF800000.
    • GetMediumAquamarine

      public static Color GetMediumAquamarine()
      Gets a predefined named color with the ARGB value #FF66CDAA.
      
       Color color = Color.GetMediumAquamarine();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF66CDAA.
    • GetMediumBlue

      public static Color GetMediumBlue()
      Gets a predefined named color with the ARGB value #FF0000CD.
      
       Color color = Color.GetMediumBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF0000CD.
    • GetMediumOrchid

      public static Color GetMediumOrchid()
      Gets a predefined named color with the ARGB value #FFBA55D3.
      
       Color color = Color.GetMediumOrchid();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFBA55D3.
    • GetMediumPurple

      public static Color GetMediumPurple()
      Gets a predefined named color with the ARGB value #FF9370DB.
      
       Color color = Color.GetMediumPurple();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF9370DB.
    • GetMediumSeaGreen

      public static Color GetMediumSeaGreen()
      Gets a predefined named color with the ARGB value #FF3CB371.
      
       Color color = Color.GetMediumSeaGreen();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF3CB371.
    • GetMediumSlateBlue

      public static Color GetMediumSlateBlue()
      Gets a predefined named color with the ARGB value #FF7B68EE.
      
       Color color = Color.GetMediumSlateBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF7B68EE.
    • GetMediumSpringGreen

      public static Color GetMediumSpringGreen()
      Gets a predefined named color with the ARGB value #FF00FA9A.
      
       Color color = Color.GetMediumSpringGreen();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF00FA9A.
    • GetMediumTurquoise

      public static Color GetMediumTurquoise()
      Gets a predefined named color with the ARGB value #FF48D1CC.
      
       Color color = Color.GetMediumTurquoise();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF48D1CC.
    • GetMediumVioletRed

      public static Color GetMediumVioletRed()
      Gets a predefined named color with the ARGB value #FFC71585.
      
       Color color = Color.GetMediumVioletRed();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFC71585.
    • GetMidnightBlue

      public static Color GetMidnightBlue()
      Gets a predefined named color with the ARGB value #FF191970.
      
       Color color = Color.GetMidnightBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF191970.
    • GetMintCream

      public static Color GetMintCream()
      Gets a predefined named color with the ARGB value #FFF5FFFA.
      
       Color color = Color.GetMintCream();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFF5FFFA.
    • GetMistyRose

      public static Color GetMistyRose()
      Gets a predefined named color with the ARGB value #FFFFE4E1.
      
       Color color = Color.GetMistyRose();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFE4E1.
    • GetMoccasin

      public static Color GetMoccasin()
      Gets a predefined named color with the ARGB value #FFFFE4B5.
      
       Color color = Color.GetMoccasin();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFE4B5.
    • GetNavajoWhite

      public static Color GetNavajoWhite()
      Gets a predefined named color with the ARGB value #FFFFDEAD.
      
       Color color = Color.GetNavajoWhite();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFDEAD.
    • GetNavy

      public static Color GetNavy()
      Gets a predefined named color with the ARGB value #FF000080.
      
       Color color = Color.GetNavy();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF000080.
    • GetOldLace

      public static Color GetOldLace()
      Gets a predefined named color with the ARGB value #FFFDF5E6.
      
       Color color = Color.GetOldLace();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFDF5E6.
    • GetOlive

      public static Color GetOlive()
      Gets a predefined named color with the ARGB value #FF808000.
      
       Color color = Color.GetOlive();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF808000.
    • GetOliveDrab

      public static Color GetOliveDrab()
      Gets a predefined named color with the ARGB value #FF6B8E23.
      
       Color color = Color.GetOliveDrab();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF6B8E23.
    • GetOrange

      public static Color GetOrange()
      Gets a predefined named color with the ARGB value #FFFFA500.
      
       Color color = Color.GetOrange();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFA500.
    • GetOrangeRed

      public static Color GetOrangeRed()
      Gets a predefined named color with the ARGB value #FFFF4500.
      
       Color color = Color.GetOrangeRed();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFF4500.
    • GetOrchid

      public static Color GetOrchid()
      Gets a predefined named color with the ARGB value #FFDA70D6.
      
       Color color = Color.GetOrchid();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFDA70D6.
    • GetPaleGoldenrod

      public static Color GetPaleGoldenrod()
      Gets a predefined named color with the ARGB value #FFEEE8AA.
      
       Color color = Color.GetPaleGoldenrod();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFEEE8AA.
    • GetPaleGreen

      public static Color GetPaleGreen()
      Gets a predefined named color with the ARGB value #FF98FB98.
      
       Color color = Color.GetPaleGreen();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF98FB98.
    • GetPaleTurquoise

      public static Color GetPaleTurquoise()
      Gets a predefined named color with the ARGB value #FFAFEEEE.
      
       Color color = Color.GetPaleTurquoise();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFAFEEEE.
    • GetPaleVioletRed

      public static Color GetPaleVioletRed()
      Gets a predefined named color with the ARGB value #FFDB7093.
      
       Color color = Color.GetPaleVioletRed();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFDB7093.
    • GetPapayaWhip

      public static Color GetPapayaWhip()
      Gets a predefined named color with the ARGB value #FFFFEFD5.
      
       Color color = Color.GetPapayaWhip();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFEFD5.
    • GetPeachPuff

      public static Color GetPeachPuff()
      Gets a predefined named color with the ARGB value #FFFFDAB9.
      
       Color color = Color.GetPeachPuff();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFDAB9.
    • GetPeru

      public static Color GetPeru()
      Gets a predefined named color with the ARGB value #FFCD853F.
      
       Color color = Color.GetPeru();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFCD853F.
    • GetPink

      public static Color GetPink()
      Gets a predefined named color with the ARGB value #FFFFC0CB.
      
       Color color = Color.GetPink();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFC0CB.
    • GetPlum

      public static Color GetPlum()
      Gets a predefined named color with the ARGB value #FFDDA0DD.
      
       Color color = Color.GetPlum();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFDDA0DD.
    • GetPowderBlue

      public static Color GetPowderBlue()
      Gets a predefined named color with the ARGB value #FFB0E0E6.
      
       Color color = Color.GetPowderBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFB0E0E6.
    • GetPurple

      public static Color GetPurple()
      Gets a predefined named color with the ARGB value #FF800080.
      
       Color color = Color.GetPurple();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF800080.
    • GetRed

      public static Color GetRed()
      Gets a predefined named color with the ARGB value #FFFF0000.
      
       Color color = Color.GetRed();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFF0000.
    • GetRosyBrown

      public static Color GetRosyBrown()
      Gets a predefined named color with the ARGB value #FFBC8F8F.
      
       Color color = Color.GetRosyBrown();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFBC8F8F.
    • GetRoyalBlue

      public static Color GetRoyalBlue()
      Gets a predefined named color with the ARGB value #FF4169E1.
      
       Color color = Color.GetRoyalBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF4169E1.
    • GetSaddleBrown

      public static Color GetSaddleBrown()
      Gets a predefined named color with the ARGB value #FF8B4513.
      
       Color color = Color.GetSaddleBrown();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF8B4513.
    • GetSalmon

      public static Color GetSalmon()
      Gets a predefined named color with the ARGB value #FFFA8072.
      
       Color color = Color.GetSalmon();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFA8072.
    • GetSandyBrown

      public static Color GetSandyBrown()
      Gets a predefined named color with the ARGB value #FFF4A460.
      
       Color color = Color.GetSandyBrown();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFF4A460.
    • GetSeaGreen

      public static Color GetSeaGreen()
      Gets a predefined named color with the ARGB value #FF2E8B57.
      
       Color color = Color.GetSeaGreen();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF2E8B57.
    • GetSeaShell

      public static Color GetSeaShell()
      Gets a predefined named color with the ARGB value #FFFFF5EE.
      
       Color color = Color.GetSeaShell();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFF5EE.
    • GetSienna

      public static Color GetSienna()
      Gets a predefined named color with the ARGB value #FFA0522D.
      
       Color color = Color.GetSienna();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFA0522D.
    • GetSilver

      public static Color GetSilver()
      Gets a predefined named color with the ARGB value #FFC0C0C0.
      
       Color color = Color.GetSilver();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFC0C0C0.
    • GetSkyBlue

      public static Color GetSkyBlue()
      Gets a predefined named color with the ARGB value #FF87CEEB.
      
       Color color = Color.GetSkyBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF87CEEB.
    • GetSlateBlue

      public static Color GetSlateBlue()
      Gets a predefined named color with the ARGB value #FF6A5ACD.
      
       Color color = Color.GetSlateBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF6A5ACD.
    • GetSlateGray

      public static Color GetSlateGray()
      Gets a predefined named color with the ARGB value #FF708090.
      
       Color color = Color.GetSlateGray();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF708090.
    • GetSnow

      public static Color GetSnow()
      Gets a predefined named color with the ARGB value #FFFFFAFA.
      
       Color color = Color.GetSnow();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFFAFA.
    • GetSpringGreen

      public static Color GetSpringGreen()
      Gets a predefined named color with the ARGB value #FF00FF7F.
      
       Color color = Color.GetSpringGreen();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF00FF7F.
    • GetSteelBlue

      public static Color GetSteelBlue()
      Gets a predefined named color with the ARGB value #FF4682B4.
      
       Color color = Color.GetSteelBlue();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF4682B4.
    • GetTan

      public static Color GetTan()
      Gets a predefined named color with the ARGB value #FFD2B48C.
      
       Color color = Color.GetTan();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFD2B48C.
    • GetTeal

      public static Color GetTeal()
      Gets a predefined named color with the ARGB value #FF008080.
      
       Color color = Color.GetTeal();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF008080.
    • GetThistle

      public static Color GetThistle()
      Gets a predefined named color with the ARGB value #FFD8BFD8.
      
       Color color = Color.GetThistle();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFD8BFD8.
    • GetTomato

      public static Color GetTomato()
      Gets a predefined named color with the ARGB value #FFFF6347.
      
       Color color = Color.GetTomato();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFF6347.
    • GetTurquoise

      public static Color GetTurquoise()
      Gets a predefined named color with the ARGB value #FF40E0D0.
      
       Color color = Color.GetTurquoise();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF40E0D0.
    • GetViolet

      public static Color GetViolet()
      Gets a predefined named color with the ARGB value #FFEE82EE.
      
       Color color = Color.GetViolet();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFEE82EE.
    • GetWheat

      public static Color GetWheat()
      Gets a predefined named color with the ARGB value #FFF5DEB3.
      
       Color color = Color.GetWheat();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFF5DEB3.
    • GetWhite

      public static Color GetWhite()
      Gets a predefined named color with the ARGB value #FFFFFFFF.
      
       Color color = Color.GetWhite();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFFFFF.
    • GetWhiteSmoke

      public static Color GetWhiteSmoke()
      Gets a predefined named color with the ARGB value #FFF5F5F5.
      
       Color color = Color.GetWhiteSmoke();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFF5F5F5.
    • GetYellow

      public static Color GetYellow()
      Gets a predefined named color with the ARGB value #FFFFFF00.
      
       Color color = Color.GetYellow();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FFFFFF00.
    • GetYellowGreen

      public static Color GetYellowGreen()
      Gets a predefined named color with the ARGB value #FF9ACD32.
      
       Color color = Color.GetYellowGreen();
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Returns:
      A predefined named color with the ARGB value #FF9ACD32.
    • getR

      public int getR()
      Gets the red component value of the color. The value is in the range 0 to 255.
      
       Color color = Color.FromArgb(128, 255, 64, 32);
      
       int alpha = color.getA();
       int red = color.getR();
       int green = color.getG();
       int blue = color.getB();
       
      Returns:
      The red component value.
    • getG

      public int getG()
      Gets the green component value of the color. The value is in the range 0 to 255.
      
       Color color = Color.FromArgb(128, 255, 64, 32);
      
       int alpha = color.getA();
       int red = color.getR();
       int green = color.getG();
       int blue = color.getB();
       
      Returns:
      The green component value.
    • getB

      public int getB()
      Gets the blue component value of the color. The value is in the range 0 to 255.
      
       Color color = Color.FromArgb(128, 255, 64, 32);
      
       int alpha = color.getA();
       int red = color.getR();
       int green = color.getG();
       int blue = color.getB();
       
      Returns:
      The blue component value.
    • getA

      public int getA()
      Gets the alpha component value of the color. The value is in the range 0 to 255, where 0 is fully transparent and 255 is fully opaque.
      
       Color color = Color.FromArgb(128, 255, 64, 32);
      
       int alpha = color.getA();
       int red = color.getR();
       int green = color.getG();
       int blue = color.getB();
       
      Returns:
      The alpha component value.
    • getIsEmpty

      public boolean getIsEmpty()
      Gets whether this color is empty.
      
       Color color = new Color();
       boolean isEmpty = color.getIsEmpty();
       
      Returns:
      true if this color is empty; otherwise, false.
    • getIsNamedColor

      public boolean getIsNamedColor()
      Gets whether this color is a predefined named color.
      
       Color color = Color.GetRed();
       boolean isNamedColor = color.getIsNamedColor();
       
      Returns:
      true if this color is a predefined named color; otherwise, false.
    • getName

      public String getName()
      Gets the name of this color. For predefined named colors, this method returns the color name. For non-named colors, it returns the ARGB value as a string.
      
       Color namedColor = Color.GetRed();
       String name = namedColor.getName();
      
       Color customColor = Color.FromArgb(255, 64, 32);
       String argbName = customColor.getName();
       
      Returns:
      The color name or the ARGB value as a string.
    • FromArgb

      public static Color FromArgb(int argb)
      Creates a Color from a 32-bit ARGB value.
      
       Color color = Color.FromArgb(0xFFFF0000);
       worksheet.getRange("A1").getInterior().setColor(color);
       
      Parameters:
      argb - The 32-bit ARGB value.
      Returns:
      The created Color.
    • FromArgb

      public static Color FromArgb(int alpha, int red, int green, int blue)
      Creates a Color from alpha, red, green, and blue component values. Each component must be in the range 0 to 255; otherwise, an IllegalArgumentException is thrown.
      
       Color semiTransparentRed = Color.FromArgb(128, 255, 0, 0);
       worksheet.getRange("B2").getInterior().setColor(semiTransparentRed);
       
      Parameters:
      alpha - The alpha component value.
      red - The red component value.
      green - The green component value.
      blue - The blue component value.
      Returns:
      The created Color.
      Throws:
      IllegalArgumentException - if any component is outside the range 0 to 255.
    • FromArgb

      public static Color FromArgb(int alpha, Color baseColor)
      Creates a Color by applying the specified alpha component to an existing color. The alpha value must be in the range 0 to 255; otherwise, an IllegalArgumentException is thrown.
      
       Color baseColor = Color.GetBlue();
       Color transparentBlue = Color.FromArgb(128, baseColor);
      
       worksheet.getRange("D2").getInterior().setColor(transparentBlue);
       
      Parameters:
      alpha - The alpha component value.
      baseColor - The existing color.
      Returns:
      The created Color.
      Throws:
      IllegalArgumentException - if alpha is outside the range 0 to 255.
    • FromArgb

      public static Color FromArgb(int red, int green, int blue)
      Creates an opaque Color from red, green, and blue component values. The alpha value is set to 255. Each component must be in the range 0 to 255; otherwise, an IllegalArgumentException is thrown.
      
       Color color = Color.FromArgb(255, 64, 32);
       worksheet.getRange("C2").getFont().setColor(color);
       
      Parameters:
      red - The red component value.
      green - The green component value.
      blue - The blue component value.
      Returns:
      The created Color.
      Throws:
      IllegalArgumentException - if any component is outside the range 0 to 255.
    • getBrightness

      public float getBrightness()
      Gets the HSB brightness value of this color. The return value is in the range 0.0 to 1.0.
      
       Color color = Color.FromArgb(255, 64, 32);
      
       float brightness = color.getBrightness();
       float hue = color.getHue();
       float saturation = color.getSaturation();
       
      Returns:
      The HSB brightness value in the range 0.0 to 1.0.
    • getHue

      public float getHue()
      Gets the HSB hue value of this color, in degrees.
      
       Color color = Color.FromArgb(255, 64, 32);
      
       float brightness = color.getBrightness();
       float hue = color.getHue();
       float saturation = color.getSaturation();
       
      Returns:
      The HSB hue value, in degrees.
    • getSaturation

      public float getSaturation()
      Gets the HSB saturation value of this color. The return value is in the range 0.0 to 1.0.
      
       Color color = Color.FromArgb(255, 64, 32);
      
       float brightness = color.getBrightness();
       float hue = color.getHue();
       float saturation = color.getSaturation();
       
      Returns:
      The HSB saturation value in the range 0.0 to 1.0.
    • toArgb

      public int toArgb()
      Returns the 32-bit ARGB value of this color.
      
       Color color = Color.FromArgb(255, 64, 32);
       int argb = color.toArgb();
       
      Returns:
      The 32-bit ARGB value of this color.
    • toString

      public String toString()
      Returns a string representation of this Color.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this Color.
    • equals

      public boolean equals(Object obj)
      Tests whether the specified object is a Color structure and is equivalent to this Color structure.
      Overrides:
      equals in class Object
      Parameters:
      obj - Another object to compare to.
      Returns:
      true if the specified Object is equal to this instance; otherwise, false.
    • hashCode

      public int hashCode()
      Returns a hash code for this instance.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.