类 Color
java.lang.Object
com.grapecity.documents.excel.Color
Creates the color structure.
-
构造器概要
-
方法概要
修饰符和类型方法说明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 structure from a 32-bit ARGB value.static Color
FromArgb
(int red, int green, int blue) Creates a Color structure from the specified 8-bit color values (red, green, and blue).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.static Color
Creates a Color structure from the specified Color structure, but with the new specified alpha value.int
getA()
Gets a.static Color
Gets a color that has an ARGB value of #FFF0F8FF.static Color
Gets a color that has an ARGB value of #FFFAEBD7.static Color
GetAqua()
Gets a color that has an ARGB value of #FF00FFFF.static Color
Gets a color that has an ARGB value of #FF7FFFD4.static Color
GetAzure()
Gets a color that has an ARGB value of #FFF0FFFF.int
getB()
Gets the b byte.static Color
GetBeige()
Gets a color that has an ARGB value of #FFF5F5DC.static Color
Gets a color that has an ARGB value of #FFFFE4C4.static Color
GetBlack()
Gets a color that has an ARGB value of #FF000000.static Color
Gets a color that has an ARGB value of #FFFFEBCD.static Color
GetBlue()
Gets a color that has an ARGB value of #FF0000FF.static Color
Gets a color that has an ARGB value of #FF8A2BE2.float
Gets the hue-saturation-brightness (HSB) brightness value for this Color structure.static Color
GetBrown()
Gets a color that has an ARGB value of #FFA52A2A.static Color
Gets a color that has an ARGB value of #FFDEB887.static Color
Gets a color that has an ARGB value of #FF5F9EA0.static Color
Gets a color that has an ARGB value of #FF7FFF00.static Color
Gets a color that has an ARGB value of #FFD2691E.static Color
GetCoral()
Gets a color that has an ARGB value of #FFFF7F50.static Color
Gets a color that has an ARGB value of #FF6495ED.static Color
Gets a color that has an ARGB value of #FFFFF8DC.static Color
Gets a color that has an ARGB value of #FFDC143C.static Color
GetCyan()
Gets a color that has an ARGB value of #FF00FFFF.static Color
Gets a color that has an ARGB value of #FF00008B.static Color
Gets a color that has an ARGB value of #FF008B8B.static Color
Gets a color that has an ARGB value of #FFB8860B.static Color
Gets a color that has an ARGB value of #FFA9A9A9.static Color
Gets a color that has an ARGB value of #FF006400.static Color
Gets a color that has an ARGB value of #FFBDB76B.static Color
Gets a color that has an ARGB value of #FF8B008B.static Color
Gets a color that has an ARGB value of #FF556B2F.static Color
Gets a color that has an ARGB value of #FFFF8C00.static Color
Gets a color that has an ARGB value of #FF9932CC.static Color
Gets a color that has an ARGB value of #FF8B0000.static Color
Gets a color that has an ARGB value of #FFE9967A.static Color
Gets a color that has an ARGB value of #FF8FBC8F.static Color
Gets a color that has an ARGB value of #FF483D8B.static Color
Gets a color that has an ARGB value of #FF2F4F4F.static Color
Gets a color that has an ARGB value of #FF00CED1.static Color
Gets a color that has an ARGB value of #FF9400D3.static Color
Gets a color that has an ARGB value of #FFFF1493.static Color
Gets a color that has an ARGB value of #FF00BFFF.static Color
Gets a color that has an ARGB value of #FF696969.static Color
Gets a color that has an ARGB value of #FF1E90FF.static Color
Gets a color that has an ARGB value of #FFB22222.static Color
Gets a color that has an ARGB value of #FFFFFAF0.static Color
Gets a color that has an ARGB value of #FF228B22.static Color
Gets a color that has an ARGB value of #FFFF00FF.int
getG()
Gets the g byte.static Color
Gets a color that has an ARGB value of #FFDCDCDC.static Color
Gets a color that has an ARGB value of #FFF8F8FF.static Color
GetGold()
Gets a color that has an ARGB value of #FFFFD700.static Color
Gets a color that has an ARGB value of #FFDAA520.static Color
GetGray()
Gets a color that has an ARGB value of #FF808080.static Color
GetGreen()
Gets a color that has an ARGB value of #FF008000.static Color
Gets a color that has an ARGB value of #FFADFF2F.static Color
Gets a color that has an ARGB value of #FFF0FFF0.static Color
Gets a color that has an ARGB value of #FFFF69B4.float
getHue()
Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this Color structure.static Color
Gets a color that has an ARGB value of #FFCD5C5C.static Color
Gets a color that has an ARGB value of #FF4B0082.boolean
Gets a value indicating whether this color is empty.boolean
Gets a value indicating whether this color is named color.static Color
GetIvory()
Gets a color that has an ARGB value of #FFFFFFF0.static Color
GetKhaki()
Gets a color that has an ARGB value of #FFF0E68C.static Color
Gets a color that has an ARGB value of #FFE6E6FA.static Color
Gets a color that has an ARGB value of #FFFFF0F5.static Color
Gets a color that has an ARGB value of #FF7CFC00.static Color
Gets a color that has an ARGB value of #FFFFFACD.static Color
Gets a color that has an ARGB value of #FFADD8E6.static Color
Gets a color that has an ARGB value of #FFF08080.static Color
Gets a color that has an ARGB value of #FFE0FFFF.static Color
Gets a color that has an ARGB value of #FFFAFAD2.static Color
Gets a color that has an ARGB value of #FFD3D3D3.static Color
Gets a color that has an ARGB value of #FF90EE90.static Color
Gets a color that has an ARGB value of #FFFFB6C1.static Color
Gets a color that has an ARGB value of #FFFFA07A.static Color
Gets a color that has an ARGB value of #FF20B2AA.static Color
Gets a color that has an ARGB value of #FF87CEFA.static Color
Gets a color that has an ARGB value of #FF778899.static Color
Gets a color that has an ARGB value of #FFB0C4DE.static Color
Gets a color that has an ARGB value of #FFFFFFE0.static Color
GetLime()
Gets a color that has an ARGB value of #FF00FF00.static Color
Gets a color that has an ARGB value of #FF32CD32.static Color
GetLinen()
Gets a color that has an ARGB value of #FFFAF0E6.static Color
Gets a color that has an ARGB value of #FFFF00FF.static Color
Gets a color that has an ARGB value of #FF800000.static Color
Gets a color that has an ARGB value of #FF66CDAA.static Color
Gets a color that has an ARGB value of #FF0000CD.static Color
Gets a color that has an ARGB value of #FFBA55D3.static Color
Gets a color that has an ARGB value of #FF9370DB.static Color
Gets a color that has an ARGB value of #FF3CB371.static Color
Gets a color that has an ARGB value of #FF7B68EE.static Color
Gets a color that has an ARGB value of #FF00FA9A.static Color
Gets a color that has an ARGB value of #FF48D1CC.static Color
Gets a color that has an ARGB value of #FFC71585.static Color
Gets a color that has an ARGB value of #FF191970.static Color
Gets a color that has an ARGB value of #FFF5FFFA.static Color
Gets a color that has an ARGB value of #FFFFE4E1.static Color
Gets a color that has an ARGB value of #FFFFE4B5.getName()
Gets the color name.static Color
Gets a color that has an ARGB value of #FFFFDEAD.static Color
GetNavy()
Gets a color that has an ARGB value of #FF000080.static Color
Gets a color that has an ARGB value of #FFFDF5E6.static Color
GetOlive()
Gets a color that has an ARGB value of #FF808000.static Color
Gets a color that has an ARGB value of #FF6B8E23.static Color
Gets a color that has an ARGB value of #FFFFA500.static Color
Gets a color that has an ARGB value of #FFFF4500.static Color
Gets a color that has an ARGB value of #FFDA70D6.static Color
Gets a color that has an ARGB value of #FFEEE8AA.static Color
Gets a color that has an ARGB value of #FF98FB98.static Color
Gets a color that has an ARGB value of #FFAFEEEE.static Color
Gets a color that has an ARGB value of #FFDB7093.static Color
Gets a color that has an ARGB value of #FFFFEFD5.static Color
Gets a color that has an ARGB value of #FFFFDAB9.static Color
GetPeru()
Gets a color that has an ARGB value of #FFCD853F.static Color
GetPink()
Gets a color that has an ARGB value of #FFFFC0CB.static Color
GetPlum()
Gets a color that has an ARGB value of #FFDDA0DD.static Color
Gets a color that has an ARGB value of #FFB0E0E6.static Color
Gets a color that has an ARGB value of #FF800080.int
getR()
Gets the r byte.static Color
GetRed()
Gets a color that has an ARGB value of #FFFF0000.static Color
Gets a color that has an ARGB value of #FFBC8F8F.static Color
Gets a color that has an ARGB value of #FF4169E1.static Color
Gets a color that has an ARGB value of #FF8B4513.static Color
Gets a color that has an ARGB value of #FFFA8072.static Color
Gets a color that has an ARGB value of #FFF4A460.float
Gets the hue-saturation-brightness (HSB) saturation value for this Color structure.static Color
Gets a color that has an ARGB value of #FF2E8B57.static Color
Gets a color that has an ARGB value of #FFFFF5EE.static Color
Gets a color that has an ARGB value of #FFA0522D.static Color
Gets a color that has an ARGB value of #FFC0C0C0.static Color
Gets a color that has an ARGB value of #FF87CEEB.static Color
Gets a color that has an ARGB value of #FF6A5ACD.static Color
Gets a color that has an ARGB value of #FF708090.static Color
GetSnow()
Gets a color that has an ARGB value of #FFFFFAFA.static Color
Gets a color that has an ARGB value of #FF00FF7F.static Color
Gets a color that has an ARGB value of #FF4682B4.static Color
GetTan()
Gets a color that has an ARGB value of #FFD2B48C.static Color
GetTeal()
Gets a color that has an ARGB value of #FF008080.static Color
Gets a color that has an ARGB value of #FFD8BFD8.static Color
Gets a color that has an ARGB value of #FFFF6347.static Color
Gets transparent color.static Color
Gets a color that has an ARGB value of #FF40E0D0.static Color
Gets a color that has an ARGB value of #FFEE82EE.static Color
GetWheat()
Gets a color that has an ARGB value of #FFF5DEB3.static Color
GetWhite()
Gets a color that has an ARGB value of #FFFFFFFF.static Color
Gets a color that has an ARGB value of #FFF5F5F5.static Color
The color of the background in the client area of a window.static Color
The color of the text in the client area of a window.static Color
Gets a color that has an ARGB value of #FFFFFF00.static Color
Gets a color that has an ARGB value of #FF9ACD32.int
hashCode()
Returns a hash code for this instance.int
toArgb()
Gets the 32-bit ARGB value of this Color structure.toString()
Converts this Color structure to a human-readable string.
-
构造器详细资料
-
Color
public Color()
-
-
方法详细资料
-
GetTransparent
Gets transparent color. -
GetAliceBlue
Gets a color that has an ARGB value of #FFF0F8FF. -
GetAntiqueWhite
Gets a color that has an ARGB value of #FFFAEBD7. -
GetAqua
Gets a color that has an ARGB value of #FF00FFFF. -
GetAquamarine
Gets a color that has an ARGB value of #FF7FFFD4. -
GetAzure
Gets a color that has an ARGB value of #FFF0FFFF. -
GetBeige
Gets a color that has an ARGB value of #FFF5F5DC. -
GetBisque
Gets a color that has an ARGB value of #FFFFE4C4. -
GetBlack
Gets a color that has an ARGB value of #FF000000.- 返回:
- The black color.
-
GetWindow
The color of the background in the client area of a window. -
GetWindowText
The color of the text in the client area of a window. -
GetBlanchedAlmond
Gets a color that has an ARGB value of #FFFFEBCD. -
GetBlue
Gets a color that has an ARGB value of #FF0000FF. -
GetBlueViolet
Gets a color that has an ARGB value of #FF8A2BE2. -
GetBrown
Gets a color that has an ARGB value of #FFA52A2A. -
GetBurlyWood
Gets a color that has an ARGB value of #FFDEB887. -
GetCadetBlue
Gets a color that has an ARGB value of #FF5F9EA0. -
GetChartreuse
Gets a color that has an ARGB value of #FF7FFF00. -
GetChocolate
Gets a color that has an ARGB value of #FFD2691E. -
GetCoral
Gets a color that has an ARGB value of #FFFF7F50. -
GetCornflowerBlue
Gets a color that has an ARGB value of #FF6495ED. -
GetCornsilk
Gets a color that has an ARGB value of #FFFFF8DC. -
GetCrimson
Gets a color that has an ARGB value of #FFDC143C. -
GetCyan
Gets a color that has an ARGB value of #FF00FFFF. -
GetDarkBlue
Gets a color that has an ARGB value of #FF00008B. -
GetDarkCyan
Gets a color that has an ARGB value of #FF008B8B. -
GetDarkGoldenrod
Gets a color that has an ARGB value of #FFB8860B. -
GetDarkGray
Gets a color that has an ARGB value of #FFA9A9A9. -
GetDarkGreen
Gets a color that has an ARGB value of #FF006400. -
GetDarkKhaki
Gets a color that has an ARGB value of #FFBDB76B. -
GetDarkMagenta
Gets a color that has an ARGB value of #FF8B008B. -
GetDarkOliveGreen
Gets a color that has an ARGB value of #FF556B2F. -
GetDarkOrange
Gets a color that has an ARGB value of #FFFF8C00. -
GetDarkOrchid
Gets a color that has an ARGB value of #FF9932CC. -
GetDarkRed
Gets a color that has an ARGB value of #FF8B0000. -
GetDarkSalmon
Gets a color that has an ARGB value of #FFE9967A. -
GetDarkSeaGreen
Gets a color that has an ARGB value of #FF8FBC8F. -
GetDarkSlateBlue
Gets a color that has an ARGB value of #FF483D8B. -
GetDarkSlateGray
Gets a color that has an ARGB value of #FF2F4F4F. -
GetDarkTurquoise
Gets a color that has an ARGB value of #FF00CED1. -
GetDarkViolet
Gets a color that has an ARGB value of #FF9400D3. -
GetDeepPink
Gets a color that has an ARGB value of #FFFF1493. -
GetDeepSkyBlue
Gets a color that has an ARGB value of #FF00BFFF. -
GetDimGray
Gets a color that has an ARGB value of #FF696969. -
GetDodgerBlue
Gets a color that has an ARGB value of #FF1E90FF. -
GetFirebrick
Gets a color that has an ARGB value of #FFB22222. -
GetFloralWhite
Gets a color that has an ARGB value of #FFFFFAF0. -
GetForestGreen
Gets a color that has an ARGB value of #FF228B22. -
GetFuchsia
Gets a color that has an ARGB value of #FFFF00FF. -
GetGainsboro
Gets a color that has an ARGB value of #FFDCDCDC. -
GetGhostWhite
Gets a color that has an ARGB value of #FFF8F8FF. -
GetGold
Gets a color that has an ARGB value of #FFFFD700. -
GetGoldenrod
Gets a color that has an ARGB value of #FFDAA520. -
GetGray
Gets a color that has an ARGB value of #FF808080. -
GetGreen
Gets a color that has an ARGB value of #FF008000. -
GetGreenYellow
Gets a color that has an ARGB value of #FFADFF2F. -
GetHoneydew
Gets a color that has an ARGB value of #FFF0FFF0. -
GetHotPink
Gets a color that has an ARGB value of #FFFF69B4. -
GetIndianRed
Gets a color that has an ARGB value of #FFCD5C5C. -
GetIndigo
Gets a color that has an ARGB value of #FF4B0082. -
GetIvory
Gets a color that has an ARGB value of #FFFFFFF0. -
GetKhaki
Gets a color that has an ARGB value of #FFF0E68C. -
GetLavender
Gets a color that has an ARGB value of #FFE6E6FA. -
GetLavenderBlush
Gets a color that has an ARGB value of #FFFFF0F5. -
GetLawnGreen
Gets a color that has an ARGB value of #FF7CFC00. -
GetLemonChiffon
Gets a color that has an ARGB value of #FFFFFACD. -
GetLightBlue
Gets a color that has an ARGB value of #FFADD8E6. -
GetLightCoral
Gets a color that has an ARGB value of #FFF08080. -
GetLightCyan
Gets a color that has an ARGB value of #FFE0FFFF. -
GetLightGoldenrodYellow
Gets a color that has an ARGB value of #FFFAFAD2. -
GetLightGray
Gets a color that has an ARGB value of #FFD3D3D3. -
GetLightGreen
Gets a color that has an ARGB value of #FF90EE90. -
GetLightPink
Gets a color that has an ARGB value of #FFFFB6C1. -
GetLightSalmon
Gets a color that has an ARGB value of #FFFFA07A. -
GetLightSeaGreen
Gets a color that has an ARGB value of #FF20B2AA. -
GetLightSkyBlue
Gets a color that has an ARGB value of #FF87CEFA. -
GetLightSlateGray
Gets a color that has an ARGB value of #FF778899. -
GetLightSteelBlue
Gets a color that has an ARGB value of #FFB0C4DE. -
GetLightYellow
Gets a color that has an ARGB value of #FFFFFFE0. -
GetLime
Gets a color that has an ARGB value of #FF00FF00. -
GetLimeGreen
Gets a color that has an ARGB value of #FF32CD32. -
GetLinen
Gets a color that has an ARGB value of #FFFAF0E6. -
GetMagenta
Gets a color that has an ARGB value of #FFFF00FF. -
GetMaroon
Gets a color that has an ARGB value of #FF800000. -
GetMediumAquamarine
Gets a color that has an ARGB value of #FF66CDAA. -
GetMediumBlue
Gets a color that has an ARGB value of #FF0000CD. -
GetMediumOrchid
Gets a color that has an ARGB value of #FFBA55D3. -
GetMediumPurple
Gets a color that has an ARGB value of #FF9370DB. -
GetMediumSeaGreen
Gets a color that has an ARGB value of #FF3CB371. -
GetMediumSlateBlue
Gets a color that has an ARGB value of #FF7B68EE. -
GetMediumSpringGreen
Gets a color that has an ARGB value of #FF00FA9A. -
GetMediumTurquoise
Gets a color that has an ARGB value of #FF48D1CC. -
GetMediumVioletRed
Gets a color that has an ARGB value of #FFC71585. -
GetMidnightBlue
Gets a color that has an ARGB value of #FF191970. -
GetMintCream
Gets a color that has an ARGB value of #FFF5FFFA. -
GetMistyRose
Gets a color that has an ARGB value of #FFFFE4E1. -
GetMoccasin
Gets a color that has an ARGB value of #FFFFE4B5. -
GetOldLace
Gets a color that has an ARGB value of #FFFDF5E6. -
GetOlive
Gets a color that has an ARGB value of #FF808000. -
GetOliveDrab
Gets a color that has an ARGB value of #FF6B8E23. -
GetOrange
Gets a color that has an ARGB value of #FFFFA500. -
GetOrangeRed
Gets a color that has an ARGB value of #FFFF4500. -
GetOrchid
Gets a color that has an ARGB value of #FFDA70D6. -
GetPaleGoldenrod
Gets a color that has an ARGB value of #FFEEE8AA. -
GetPaleGreen
Gets a color that has an ARGB value of #FF98FB98. -
GetPaleTurquoise
Gets a color that has an ARGB value of #FFAFEEEE. -
GetPaleVioletRed
Gets a color that has an ARGB value of #FFDB7093. -
GetPapayaWhip
Gets a color that has an ARGB value of #FFFFEFD5. -
GetPeachPuff
Gets a color that has an ARGB value of #FFFFDAB9. -
GetPeru
Gets a color that has an ARGB value of #FFCD853F. -
GetPink
Gets a color that has an ARGB value of #FFFFC0CB. -
GetPlum
Gets a color that has an ARGB value of #FFDDA0DD. -
GetPowderBlue
Gets a color that has an ARGB value of #FFB0E0E6. -
GetPurple
Gets a color that has an ARGB value of #FF800080. -
GetRed
Gets a color that has an ARGB value of #FFFF0000. -
GetRosyBrown
Gets a color that has an ARGB value of #FFBC8F8F. -
GetRoyalBlue
Gets a color that has an ARGB value of #FF4169E1. -
GetSaddleBrown
Gets a color that has an ARGB value of #FF8B4513. -
GetSalmon
Gets a color that has an ARGB value of #FFFA8072. -
GetSandyBrown
Gets a color that has an ARGB value of #FFF4A460. -
GetSeaGreen
Gets a color that has an ARGB value of #FF2E8B57. -
GetSeaShell
Gets a color that has an ARGB value of #FFFFF5EE. -
GetSienna
Gets a color that has an ARGB value of #FFA0522D. -
GetSilver
Gets a color that has an ARGB value of #FFC0C0C0. -
GetSkyBlue
Gets a color that has an ARGB value of #FF87CEEB. -
GetSlateBlue
Gets a color that has an ARGB value of #FF6A5ACD. -
GetSlateGray
Gets a color that has an ARGB value of #FF708090. -
GetSnow
Gets a color that has an ARGB value of #FFFFFAFA. -
GetSpringGreen
Gets a color that has an ARGB value of #FF00FF7F. -
GetSteelBlue
Gets a color that has an ARGB value of #FF4682B4. -
GetTan
Gets a color that has an ARGB value of #FFD2B48C. -
GetTeal
Gets a color that has an ARGB value of #FF008080. -
GetThistle
Gets a color that has an ARGB value of #FFD8BFD8. -
GetTomato
Gets a color that has an ARGB value of #FFFF6347. -
GetTurquoise
Gets a color that has an ARGB value of #FF40E0D0. -
GetViolet
Gets a color that has an ARGB value of #FFEE82EE. -
GetWheat
Gets a color that has an ARGB value of #FFF5DEB3. -
GetWhite
Gets a color that has an ARGB value of #FFFFFFFF. -
GetWhiteSmoke
Gets a color that has an ARGB value of #FFF5F5F5. -
GetYellow
Gets a color that has an ARGB value of #FFFFFF00. -
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
Gets the color name.- 返回:
- The color name.
-
FromArgb
Creates a Color structure from a 32-bit ARGB value.- 参数:
argb
- The ARGB.- 返回:
- Color.
-
FromArgb
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
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
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
Converts this Color structure to a human-readable string. (Overrides ValueType.ToString().) In XNA Framework 3.0, this member is inherited from Object.ToString(). -
equals
Tests whether the specified object is a Color structure and is equivalent to this Color structure. -
hashCode
public int hashCode()Returns a hash code for this instance.
-