类 Color

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

public final class Color extends Object
Creates the color structure.
  • 构造器详细资料

    • Color

      public Color()
  • 方法详细资料

    • GetTransparent

      public static Color GetTransparent()
      Gets transparent color.
    • GetAliceBlue

      public static Color GetAliceBlue()
      Gets a color that has an ARGB value of #FFF0F8FF.
    • GetAntiqueWhite

      public static Color GetAntiqueWhite()
      Gets a color that has an ARGB value of #FFFAEBD7.
    • GetAqua

      public static Color GetAqua()
      Gets a color that has an ARGB value of #FF00FFFF.
    • GetAquamarine

      public static Color GetAquamarine()
      Gets a color that has an ARGB value of #FF7FFFD4.
    • GetAzure

      public static Color GetAzure()
      Gets a color that has an ARGB value of #FFF0FFFF.
    • GetBeige

      public static Color GetBeige()
      Gets a color that has an ARGB value of #FFF5F5DC.
    • GetBisque

      public static Color GetBisque()
      Gets a color that has an ARGB value of #FFFFE4C4.
    • GetBlack

      public static Color GetBlack()
      Gets a color that has an ARGB value of #FF000000.
      返回:
      The black color.
    • GetWindow

      public static Color GetWindow()
      The color of the background in the client area of a window.
    • GetWindowText

      public static Color GetWindowText()
      The color of the text in the client area of a window.
    • GetBlanchedAlmond

      public static Color GetBlanchedAlmond()
      Gets a color that has an ARGB value of #FFFFEBCD.
    • GetBlue

      public static Color GetBlue()
      Gets a color that has an ARGB value of #FF0000FF.
    • GetBlueViolet

      public static Color GetBlueViolet()
      Gets a color that has an ARGB value of #FF8A2BE2.
    • GetBrown

      public static Color GetBrown()
      Gets a color that has an ARGB value of #FFA52A2A.
    • GetBurlyWood

      public static Color GetBurlyWood()
      Gets a color that has an ARGB value of #FFDEB887.
    • GetCadetBlue

      public static Color GetCadetBlue()
      Gets a color that has an ARGB value of #FF5F9EA0.
    • GetChartreuse

      public static Color GetChartreuse()
      Gets a color that has an ARGB value of #FF7FFF00.
    • GetChocolate

      public static Color GetChocolate()
      Gets a color that has an ARGB value of #FFD2691E.
    • GetCoral

      public static Color GetCoral()
      Gets a color that has an ARGB value of #FFFF7F50.
    • GetCornflowerBlue

      public static Color GetCornflowerBlue()
      Gets a color that has an ARGB value of #FF6495ED.
    • GetCornsilk

      public static Color GetCornsilk()
      Gets a color that has an ARGB value of #FFFFF8DC.
    • GetCrimson

      public static Color GetCrimson()
      Gets a color that has an ARGB value of #FFDC143C.
    • GetCyan

      public static Color GetCyan()
      Gets a color that has an ARGB value of #FF00FFFF.
    • GetDarkBlue

      public static Color GetDarkBlue()
      Gets a color that has an ARGB value of #FF00008B.
    • GetDarkCyan

      public static Color GetDarkCyan()
      Gets a color that has an ARGB value of #FF008B8B.
    • GetDarkGoldenrod

      public static Color GetDarkGoldenrod()
      Gets a color that has an ARGB value of #FFB8860B.
    • GetDarkGray

      public static Color GetDarkGray()
      Gets a color that has an ARGB value of #FFA9A9A9.
    • GetDarkGreen

      public static Color GetDarkGreen()
      Gets a color that has an ARGB value of #FF006400.
    • GetDarkKhaki

      public static Color GetDarkKhaki()
      Gets a color that has an ARGB value of #FFBDB76B.
    • GetDarkMagenta

      public static Color GetDarkMagenta()
      Gets a color that has an ARGB value of #FF8B008B.
    • GetDarkOliveGreen

      public static Color GetDarkOliveGreen()
      Gets a color that has an ARGB value of #FF556B2F.
    • GetDarkOrange

      public static Color GetDarkOrange()
      Gets a color that has an ARGB value of #FFFF8C00.
    • GetDarkOrchid

      public static Color GetDarkOrchid()
      Gets a color that has an ARGB value of #FF9932CC.
    • GetDarkRed

      public static Color GetDarkRed()
      Gets a color that has an ARGB value of #FF8B0000.
    • GetDarkSalmon

      public static Color GetDarkSalmon()
      Gets a color that has an ARGB value of #FFE9967A.
    • GetDarkSeaGreen

      public static Color GetDarkSeaGreen()
      Gets a color that has an ARGB value of #FF8FBC8F.
    • GetDarkSlateBlue

      public static Color GetDarkSlateBlue()
      Gets a color that has an ARGB value of #FF483D8B.
    • GetDarkSlateGray

      public static Color GetDarkSlateGray()
      Gets a color that has an ARGB value of #FF2F4F4F.
    • GetDarkTurquoise

      public static Color GetDarkTurquoise()
      Gets a color that has an ARGB value of #FF00CED1.
    • GetDarkViolet

      public static Color GetDarkViolet()
      Gets a color that has an ARGB value of #FF9400D3.
    • GetDeepPink

      public static Color GetDeepPink()
      Gets a color that has an ARGB value of #FFFF1493.
    • GetDeepSkyBlue

      public static Color GetDeepSkyBlue()
      Gets a color that has an ARGB value of #FF00BFFF.
    • GetDimGray

      public static Color GetDimGray()
      Gets a color that has an ARGB value of #FF696969.
    • GetDodgerBlue

      public static Color GetDodgerBlue()
      Gets a color that has an ARGB value of #FF1E90FF.
    • GetFirebrick

      public static Color GetFirebrick()
      Gets a color that has an ARGB value of #FFB22222.
    • GetFloralWhite

      public static Color GetFloralWhite()
      Gets a color that has an ARGB value of #FFFFFAF0.
    • GetForestGreen

      public static Color GetForestGreen()
      Gets a color that has an ARGB value of #FF228B22.
    • GetFuchsia

      public static Color GetFuchsia()
      Gets a color that has an ARGB value of #FFFF00FF.
    • GetGainsboro

      public static Color GetGainsboro()
      Gets a color that has an ARGB value of #FFDCDCDC.
    • GetGhostWhite

      public static Color GetGhostWhite()
      Gets a color that has an ARGB value of #FFF8F8FF.
    • GetGold

      public static Color GetGold()
      Gets a color that has an ARGB value of #FFFFD700.
    • GetGoldenrod

      public static Color GetGoldenrod()
      Gets a color that has an ARGB value of #FFDAA520.
    • GetGray

      public static Color GetGray()
      Gets a color that has an ARGB value of #FF808080.
    • GetGreen

      public static Color GetGreen()
      Gets a color that has an ARGB value of #FF008000.
    • GetGreenYellow

      public static Color GetGreenYellow()
      Gets a color that has an ARGB value of #FFADFF2F.
    • GetHoneydew

      public static Color GetHoneydew()
      Gets a color that has an ARGB value of #FFF0FFF0.
    • GetHotPink

      public static Color GetHotPink()
      Gets a color that has an ARGB value of #FFFF69B4.
    • GetIndianRed

      public static Color GetIndianRed()
      Gets a color that has an ARGB value of #FFCD5C5C.
    • GetIndigo

      public static Color GetIndigo()
      Gets a color that has an ARGB value of #FF4B0082.
    • GetIvory

      public static Color GetIvory()
      Gets a color that has an ARGB value of #FFFFFFF0.
    • GetKhaki

      public static Color GetKhaki()
      Gets a color that has an ARGB value of #FFF0E68C.
    • GetLavender

      public static Color GetLavender()
      Gets a color that has an ARGB value of #FFE6E6FA.
    • GetLavenderBlush

      public static Color GetLavenderBlush()
      Gets a color that has an ARGB value of #FFFFF0F5.
    • GetLawnGreen

      public static Color GetLawnGreen()
      Gets a color that has an ARGB value of #FF7CFC00.
    • GetLemonChiffon

      public static Color GetLemonChiffon()
      Gets a color that has an ARGB value of #FFFFFACD.
    • GetLightBlue

      public static Color GetLightBlue()
      Gets a color that has an ARGB value of #FFADD8E6.
    • GetLightCoral

      public static Color GetLightCoral()
      Gets a color that has an ARGB value of #FFF08080.
    • GetLightCyan

      public static Color GetLightCyan()
      Gets a color that has an ARGB value of #FFE0FFFF.
    • GetLightGoldenrodYellow

      public static Color GetLightGoldenrodYellow()
      Gets a color that has an ARGB value of #FFFAFAD2.
    • GetLightGray

      public static Color GetLightGray()
      Gets a color that has an ARGB value of #FFD3D3D3.
    • GetLightGreen

      public static Color GetLightGreen()
      Gets a color that has an ARGB value of #FF90EE90.
    • GetLightPink

      public static Color GetLightPink()
      Gets a color that has an ARGB value of #FFFFB6C1.
    • GetLightSalmon

      public static Color GetLightSalmon()
      Gets a color that has an ARGB value of #FFFFA07A.
    • GetLightSeaGreen

      public static Color GetLightSeaGreen()
      Gets a color that has an ARGB value of #FF20B2AA.
    • GetLightSkyBlue

      public static Color GetLightSkyBlue()
      Gets a color that has an ARGB value of #FF87CEFA.
    • GetLightSlateGray

      public static Color GetLightSlateGray()
      Gets a color that has an ARGB value of #FF778899.
    • GetLightSteelBlue

      public static Color GetLightSteelBlue()
      Gets a color that has an ARGB value of #FFB0C4DE.
    • GetLightYellow

      public static Color GetLightYellow()
      Gets a color that has an ARGB value of #FFFFFFE0.
    • GetLime

      public static Color GetLime()
      Gets a color that has an ARGB value of #FF00FF00.
    • GetLimeGreen

      public static Color GetLimeGreen()
      Gets a color that has an ARGB value of #FF32CD32.
    • GetLinen

      public static Color GetLinen()
      Gets a color that has an ARGB value of #FFFAF0E6.
    • GetMagenta

      public static Color GetMagenta()
      Gets a color that has an ARGB value of #FFFF00FF.
    • GetMaroon

      public static Color GetMaroon()
      Gets a color that has an ARGB value of #FF800000.
    • GetMediumAquamarine

      public static Color GetMediumAquamarine()
      Gets a color that has an ARGB value of #FF66CDAA.
    • GetMediumBlue

      public static Color GetMediumBlue()
      Gets a color that has an ARGB value of #FF0000CD.
    • GetMediumOrchid

      public static Color GetMediumOrchid()
      Gets a color that has an ARGB value of #FFBA55D3.
    • GetMediumPurple

      public static Color GetMediumPurple()
      Gets a color that has an ARGB value of #FF9370DB.
    • GetMediumSeaGreen

      public static Color GetMediumSeaGreen()
      Gets a color that has an ARGB value of #FF3CB371.
    • GetMediumSlateBlue

      public static Color GetMediumSlateBlue()
      Gets a color that has an ARGB value of #FF7B68EE.
    • GetMediumSpringGreen

      public static Color GetMediumSpringGreen()
      Gets a color that has an ARGB value of #FF00FA9A.
    • GetMediumTurquoise

      public static Color GetMediumTurquoise()
      Gets a color that has an ARGB value of #FF48D1CC.
    • GetMediumVioletRed

      public static Color GetMediumVioletRed()
      Gets a color that has an ARGB value of #FFC71585.
    • GetMidnightBlue

      public static Color GetMidnightBlue()
      Gets a color that has an ARGB value of #FF191970.
    • GetMintCream

      public static Color GetMintCream()
      Gets a color that has an ARGB value of #FFF5FFFA.
    • GetMistyRose

      public static Color GetMistyRose()
      Gets a color that has an ARGB value of #FFFFE4E1.
    • GetMoccasin

      public static Color GetMoccasin()
      Gets a color that has an ARGB value of #FFFFE4B5.
    • GetNavajoWhite

      public static Color GetNavajoWhite()
      Gets a color that has an ARGB value of #FFFFDEAD.
    • GetNavy

      public static Color GetNavy()
      Gets a color that has an ARGB value of #FF000080.
    • GetOldLace

      public static Color GetOldLace()
      Gets a color that has an ARGB value of #FFFDF5E6.
    • GetOlive

      public static Color GetOlive()
      Gets a color that has an ARGB value of #FF808000.
    • GetOliveDrab

      public static Color GetOliveDrab()
      Gets a color that has an ARGB value of #FF6B8E23.
    • GetOrange

      public static Color GetOrange()
      Gets a color that has an ARGB value of #FFFFA500.
    • GetOrangeRed

      public static Color GetOrangeRed()
      Gets a color that has an ARGB value of #FFFF4500.
    • GetOrchid

      public static Color GetOrchid()
      Gets a color that has an ARGB value of #FFDA70D6.
    • GetPaleGoldenrod

      public static Color GetPaleGoldenrod()
      Gets a color that has an ARGB value of #FFEEE8AA.
    • GetPaleGreen

      public static Color GetPaleGreen()
      Gets a color that has an ARGB value of #FF98FB98.
    • GetPaleTurquoise

      public static Color GetPaleTurquoise()
      Gets a color that has an ARGB value of #FFAFEEEE.
    • GetPaleVioletRed

      public static Color GetPaleVioletRed()
      Gets a color that has an ARGB value of #FFDB7093.
    • GetPapayaWhip

      public static Color GetPapayaWhip()
      Gets a color that has an ARGB value of #FFFFEFD5.
    • GetPeachPuff

      public static Color GetPeachPuff()
      Gets a color that has an ARGB value of #FFFFDAB9.
    • GetPeru

      public static Color GetPeru()
      Gets a color that has an ARGB value of #FFCD853F.
    • GetPink

      public static Color GetPink()
      Gets a color that has an ARGB value of #FFFFC0CB.
    • GetPlum

      public static Color GetPlum()
      Gets a color that has an ARGB value of #FFDDA0DD.
    • GetPowderBlue

      public static Color GetPowderBlue()
      Gets a color that has an ARGB value of #FFB0E0E6.
    • GetPurple

      public static Color GetPurple()
      Gets a color that has an ARGB value of #FF800080.
    • GetRed

      public static Color GetRed()
      Gets a color that has an ARGB value of #FFFF0000.
    • GetRosyBrown

      public static Color GetRosyBrown()
      Gets a color that has an ARGB value of #FFBC8F8F.
    • GetRoyalBlue

      public static Color GetRoyalBlue()
      Gets a color that has an ARGB value of #FF4169E1.
    • GetSaddleBrown

      public static Color GetSaddleBrown()
      Gets a color that has an ARGB value of #FF8B4513.
    • GetSalmon

      public static Color GetSalmon()
      Gets a color that has an ARGB value of #FFFA8072.
    • GetSandyBrown

      public static Color GetSandyBrown()
      Gets a color that has an ARGB value of #FFF4A460.
    • GetSeaGreen

      public static Color GetSeaGreen()
      Gets a color that has an ARGB value of #FF2E8B57.
    • GetSeaShell

      public static Color GetSeaShell()
      Gets a color that has an ARGB value of #FFFFF5EE.
    • GetSienna

      public static Color GetSienna()
      Gets a color that has an ARGB value of #FFA0522D.
    • GetSilver

      public static Color GetSilver()
      Gets a color that has an ARGB value of #FFC0C0C0.
    • GetSkyBlue

      public static Color GetSkyBlue()
      Gets a color that has an ARGB value of #FF87CEEB.
    • GetSlateBlue

      public static Color GetSlateBlue()
      Gets a color that has an ARGB value of #FF6A5ACD.
    • GetSlateGray

      public static Color GetSlateGray()
      Gets a color that has an ARGB value of #FF708090.
    • GetSnow

      public static Color GetSnow()
      Gets a color that has an ARGB value of #FFFFFAFA.
    • GetSpringGreen

      public static Color GetSpringGreen()
      Gets a color that has an ARGB value of #FF00FF7F.
    • GetSteelBlue

      public static Color GetSteelBlue()
      Gets a color that has an ARGB value of #FF4682B4.
    • GetTan

      public static Color GetTan()
      Gets a color that has an ARGB value of #FFD2B48C.
    • GetTeal

      public static Color GetTeal()
      Gets a color that has an ARGB value of #FF008080.
    • GetThistle

      public static Color GetThistle()
      Gets a color that has an ARGB value of #FFD8BFD8.
    • GetTomato

      public static Color GetTomato()
      Gets a color that has an ARGB value of #FFFF6347.
    • GetTurquoise

      public static Color GetTurquoise()
      Gets a color that has an ARGB value of #FF40E0D0.
    • GetViolet

      public static Color GetViolet()
      Gets a color that has an ARGB value of #FFEE82EE.
    • GetWheat

      public static Color GetWheat()
      Gets a color that has an ARGB value of #FFF5DEB3.
    • GetWhite

      public static Color GetWhite()
      Gets a color that has an ARGB value of #FFFFFFFF.
    • GetWhiteSmoke

      public static Color GetWhiteSmoke()
      Gets a color that has an ARGB value of #FFF5F5F5.
    • GetYellow

      public static Color GetYellow()
      Gets a color that has an ARGB value of #FFFFFF00.
    • GetYellowGreen

      public static Color GetYellowGreen()
      Gets a color that has an ARGB value of #FF9ACD32.
    • getR

      public int getR()
      Gets the r byte.
      返回:
      The r value.
    • getG

      public int getG()
      Gets the g byte.
      返回:
      The g value.
    • getB

      public int getB()
      Gets the b byte.
      返回:
      The b value.
    • getA

      public int getA()
      Gets a.
      返回:
      a.
    • getIsEmpty

      public boolean getIsEmpty()
      Gets a value indicating whether this color is empty.
      返回:
      true if this color is empty; otherwise, false.
    • getIsNamedColor

      public boolean getIsNamedColor()
      Gets a value indicating whether this color is named color.
      返回:
      true if this color is named color; otherwise,false.
    • getName

      public String getName()
      Gets the color name.
      返回:
      The color name.
    • FromArgb

      public static Color FromArgb(int argb)
      Creates a Color structure from a 32-bit ARGB value.
      参数:
      argb - The ARGB.
      返回:
      Color.
    • FromArgb

      public static Color FromArgb(int alpha, int red, int green, int blue)
      Creates a Color structure from the four ARGB component (alpha, red, green, and blue) values. Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.
      参数:
      alpha - The alpha.
      red - The red.
      green - The green.
      blue - The blue.
      返回:
      Color.
    • FromArgb

      public static Color FromArgb(int alpha, Color baseColor)
      Creates a Color structure from the specified Color structure, but with the new specified alpha value. Although this method allows a 32-bit value to be passed for the alpha value, the value is limited to 8 bits.
      参数:
      alpha - The alpha value for the new Color. Valid values are 0 through 255.
      baseColor - Color of the base.
      返回:
      Color.
    • FromArgb

      public static Color FromArgb(int red, int green, int blue)
      Creates a Color structure from the specified 8-bit color values (red, green, and blue). The alpha value is implicitly 255 (fully opaque). Although this method allows a 32-bit value to be passed for each color component, the value of each component is limited to 8 bits.
      参数:
      red - The red.
      green - The green.
      blue - The blue.
      返回:
      Color.
    • getBrightness

      public float getBrightness()
      Gets the hue-saturation-brightness (HSB) brightness value for this Color structure.
      返回:
      System.Single.
    • getHue

      public float getHue()
      Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this Color structure.
      返回:
      System.Single.
    • getSaturation

      public float getSaturation()
      Gets the hue-saturation-brightness (HSB) saturation value for this Color structure.
      返回:
      System.Single.
    • toArgb

      public int toArgb()
      Gets the 32-bit ARGB value of this Color structure.
      返回:
    • toString

      public String toString()
      Converts this Color structure to a human-readable string. (Overrides ValueType.ToString().) In XNA Framework 3.0, this member is inherited from Object.ToString().
      覆盖:
      toString 在类中 Object
      返回:
      A String that represents this instance.
    • equals

      public boolean equals(Object obj)
      Tests whether the specified object is a Color structure and is equivalent to this Color structure.
      覆盖:
      equals 在类中 Object
      参数:
      obj - Another object to compare to.
      返回:
      true if the specified Object is equal tothis instance; otherwise, false.
    • hashCode

      public int hashCode()
      Returns a hash code for this instance.
      覆盖:
      hashCode 在类中 Object
      返回:
      A hash code for this instance, suitable for use in hashing algorithmsand data structures like a hash table.