Struct UIColor
Definition
- Assembly:
- Tizen.NUI.dll
Defines a value type of color.
public struct UIColor : IEquatable<UIColor>, IToken<UIColor>
- Implements
-
IEquatable<><UIColor>
Constructors
View SourceUIColor(float, float, float, float)
Initializes a new instance of the UIColor struct.
Declaration
public UIColor(float r, float g, float b, float a)
Parameters
| Type | Name | Description |
|---|---|---|
| float | r | The red component. |
| float | g | The green component. |
| float | b | The blue component. |
| float | a | The alpha component. |
UIColor(uint, float)
Initializes a new instance of the UIColor struct.
Declaration
public UIColor(uint value, float alpha)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | value | The value of 0xRRGGBB format. |
| float | alpha | The alpha value between 0.0 and 1.0. |
Examples
new UIColor(0xFF0000, 1f); // Solid red
new UIColor(0x00FF00, 0.5f) // Half transparent green
Fields
View SourceAliceBlue
The AliceBlue color. 0xF0F8FF
Declaration
public static readonly UIColor AliceBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
AntiqueWhite
The AntiqueWhite color. 0xFAEBD7
Declaration
public static readonly UIColor AntiqueWhite
Field Value
| Type | Description |
|---|---|
| UIColor |
Aqua
The Aqua color. 0x00FFFF
Declaration
public static readonly UIColor Aqua
Field Value
| Type | Description |
|---|---|
| UIColor |
AquaMarine
The AquaMarine color. 0x7FFFD4
Declaration
public static readonly UIColor AquaMarine
Field Value
| Type | Description |
|---|---|
| UIColor |
Azure
The Azure color. 0xF0FFFF
Declaration
public static readonly UIColor Azure
Field Value
| Type | Description |
|---|---|
| UIColor |
Beige
The Beige color. 0xF5F5DC
Declaration
public static readonly UIColor Beige
Field Value
| Type | Description |
|---|---|
| UIColor |
Bisque
The Bisque color. 0xFFE4C4
Declaration
public static readonly UIColor Bisque
Field Value
| Type | Description |
|---|---|
| UIColor |
Black
The Black color. 0x000000
Declaration
public static readonly UIColor Black
Field Value
| Type | Description |
|---|---|
| UIColor |
BlancheDalmond
The BlancheDalmond color. 0xFFEBCD
Declaration
public static readonly UIColor BlancheDalmond
Field Value
| Type | Description |
|---|---|
| UIColor |
Blue
The Blue color. 0x0000FF
Declaration
public static readonly UIColor Blue
Field Value
| Type | Description |
|---|---|
| UIColor |
BlueViolet
The BlueViolet color. 0x8A2BE2
Declaration
public static readonly UIColor BlueViolet
Field Value
| Type | Description |
|---|---|
| UIColor |
Brown
The Brown color. 0xA52A2A
Declaration
public static readonly UIColor Brown
Field Value
| Type | Description |
|---|---|
| UIColor |
BurlyWood
The BurlyWood color. 0xDEB887
Declaration
public static readonly UIColor BurlyWood
Field Value
| Type | Description |
|---|---|
| UIColor |
CadetBlue
The CadetBlue color. 0x5F9EA0
Declaration
public static readonly UIColor CadetBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
Chartreuse
The Chartreuse color. 0x7FFF00
Declaration
public static readonly UIColor Chartreuse
Field Value
| Type | Description |
|---|---|
| UIColor |
Chocolate
The Chocolate color. 0xD2691E
Declaration
public static readonly UIColor Chocolate
Field Value
| Type | Description |
|---|---|
| UIColor |
Coral
The Coral color. 0xFF7F50
Declaration
public static readonly UIColor Coral
Field Value
| Type | Description |
|---|---|
| UIColor |
CornflowerBlue
The CornflowerBlue color. 0x6495ED
Declaration
public static readonly UIColor CornflowerBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
Cornsilk
The Cornsilk color. 0xFFF8DC
Declaration
public static readonly UIColor Cornsilk
Field Value
| Type | Description |
|---|---|
| UIColor |
Crimson
The Crimson color. 0xDC143C
Declaration
public static readonly UIColor Crimson
Field Value
| Type | Description |
|---|---|
| UIColor |
Cyan
The Cyan color. 0x00FFFF
Declaration
public static readonly UIColor Cyan
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkBlue
The DarkBlue color. 0x00008B
Declaration
public static readonly UIColor DarkBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkCyan
The DarkCyan color. 0x008B8B
Declaration
public static readonly UIColor DarkCyan
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkGoldenrod
The DarkGoldenrod color. 0xB8860B
Declaration
public static readonly UIColor DarkGoldenrod
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkGray
The DarkGray color. 0xA9A9A9
Declaration
public static readonly UIColor DarkGray
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkGreen
The DarkGreen color. 0x006400
Declaration
public static readonly UIColor DarkGreen
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkGrey
The DarkGrey color. 0xA9A9A9
Declaration
public static readonly UIColor DarkGrey
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkKhaki
The DarkKhaki color. 0xBDB76B
Declaration
public static readonly UIColor DarkKhaki
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkMagenta
The DarkMagenta color. 0x8B008B
Declaration
public static readonly UIColor DarkMagenta
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkOliveGreen
The DarkOliveGreen color. 0x556B2F
Declaration
public static readonly UIColor DarkOliveGreen
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkOrange
The DarkOrange color. 0xFF8C00
Declaration
public static readonly UIColor DarkOrange
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkOrchid
The DarkOrchid color. 0x9932CC
Declaration
public static readonly UIColor DarkOrchid
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkRed
The DarkRed color. 0x8B0000
Declaration
public static readonly UIColor DarkRed
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkSalmon
The DarkSalmon color. 0xE9967A
Declaration
public static readonly UIColor DarkSalmon
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkSeaGreen
The DarkSeaGreen color. 0x8FBC8F
Declaration
public static readonly UIColor DarkSeaGreen
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkSlateBlue
The DarkSlateBlue color. 0x483D8B
Declaration
public static readonly UIColor DarkSlateBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkSlateGray
The DarkSlateGray color. 0x2F4F4F
Declaration
public static readonly UIColor DarkSlateGray
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkSlateGrey
The DarkSlateGrey color. 0x2F4F4F
Declaration
public static readonly UIColor DarkSlateGrey
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkTurquoise
The DarkTurquoise color. 0x00CED1
Declaration
public static readonly UIColor DarkTurquoise
Field Value
| Type | Description |
|---|---|
| UIColor |
DarkViolet
The DarkViolet color. 0x9400D3
Declaration
public static readonly UIColor DarkViolet
Field Value
| Type | Description |
|---|---|
| UIColor |
DeepPink
The DeepPink color. 0xFF1493
Declaration
public static readonly UIColor DeepPink
Field Value
| Type | Description |
|---|---|
| UIColor |
DeepSkyBlue
The DeepSkyBlue color. 0x00BFFF
Declaration
public static readonly UIColor DeepSkyBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
Default
The default color. (This is to distinguish from transparent)
Declaration
public static readonly UIColor Default
Field Value
| Type | Description |
|---|---|
| UIColor |
DimGray
The DimGray color. 0x696969
Declaration
public static readonly UIColor DimGray
Field Value
| Type | Description |
|---|---|
| UIColor |
DimGrey
The DimGrey color. 0x696969
Declaration
public static readonly UIColor DimGrey
Field Value
| Type | Description |
|---|---|
| UIColor |
DodgerBlue
The DodgerBlue color. 0x1E90FF
Declaration
public static readonly UIColor DodgerBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
FireBrick
The FireBrick color. 0xB22222
Declaration
public static readonly UIColor FireBrick
Field Value
| Type | Description |
|---|---|
| UIColor |
FloralWhite
The FloralWhite color. 0xFFFAF0
Declaration
public static readonly UIColor FloralWhite
Field Value
| Type | Description |
|---|---|
| UIColor |
ForestGreen
The ForestGreen color. 0x228B22
Declaration
public static readonly UIColor ForestGreen
Field Value
| Type | Description |
|---|---|
| UIColor |
Fuchsia
The Fuchsia color. 0xFF00FF
Declaration
public static readonly UIColor Fuchsia
Field Value
| Type | Description |
|---|---|
| UIColor |
Gainsboro
The Gainsboro color. 0xDCDCDC
Declaration
public static readonly UIColor Gainsboro
Field Value
| Type | Description |
|---|---|
| UIColor |
GhostWhite
The GhostWhite color. 0xF8F8FF
Declaration
public static readonly UIColor GhostWhite
Field Value
| Type | Description |
|---|---|
| UIColor |
Gold
The Gold color. 0xFFD700
Declaration
public static readonly UIColor Gold
Field Value
| Type | Description |
|---|---|
| UIColor |
GoldenRod
The GoldenRod color. 0xDAA520
Declaration
public static readonly UIColor GoldenRod
Field Value
| Type | Description |
|---|---|
| UIColor |
Gray
The Gray color. 0xBEBEBE
Declaration
public static readonly UIColor Gray
Field Value
| Type | Description |
|---|---|
| UIColor |
Green
The Green color. 0x00FF00
Declaration
public static readonly UIColor Green
Field Value
| Type | Description |
|---|---|
| UIColor |
GreenYellow
The GreenYellow color. 0xADFF2F
Declaration
public static readonly UIColor GreenYellow
Field Value
| Type | Description |
|---|---|
| UIColor |
Grey
The Grey color. 0x808080
Declaration
public static readonly UIColor Grey
Field Value
| Type | Description |
|---|---|
| UIColor |
Honeydew
The Honeydew color. 0xF0FFF0
Declaration
public static readonly UIColor Honeydew
Field Value
| Type | Description |
|---|---|
| UIColor |
HotPink
The HotPink color. 0xFF69B4
Declaration
public static readonly UIColor HotPink
Field Value
| Type | Description |
|---|---|
| UIColor |
Indianred
The Indianred color. 0xCD5C5C
Declaration
public static readonly UIColor Indianred
Field Value
| Type | Description |
|---|---|
| UIColor |
Indigo
The Indigo color. 0x4B0082
Declaration
public static readonly UIColor Indigo
Field Value
| Type | Description |
|---|---|
| UIColor |
Ivory
The Ivory color. 0xFFFFF0
Declaration
public static readonly UIColor Ivory
Field Value
| Type | Description |
|---|---|
| UIColor |
Khaki
The Khaki color. 0xF0E68C
Declaration
public static readonly UIColor Khaki
Field Value
| Type | Description |
|---|---|
| UIColor |
Lavender
The Lavender color. 0xE6E6FA
Declaration
public static readonly UIColor Lavender
Field Value
| Type | Description |
|---|---|
| UIColor |
LavenderBlush
The LavenderBlush color. 0xFFF0F5
Declaration
public static readonly UIColor LavenderBlush
Field Value
| Type | Description |
|---|---|
| UIColor |
LawnGreen
The LawnGreen color. 0x7CFC00
Declaration
public static readonly UIColor LawnGreen
Field Value
| Type | Description |
|---|---|
| UIColor |
LemonChiffon
The LemonChiffon color. 0xFFFACD
Declaration
public static readonly UIColor LemonChiffon
Field Value
| Type | Description |
|---|---|
| UIColor |
LightBlue
The LightBlue color. 0xADD8E6
Declaration
public static readonly UIColor LightBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
LightCoral
The LightCoral color. 0xF08080
Declaration
public static readonly UIColor LightCoral
Field Value
| Type | Description |
|---|---|
| UIColor |
LightCyan
The LightCyan color. 0xE0FFFF
Declaration
public static readonly UIColor LightCyan
Field Value
| Type | Description |
|---|---|
| UIColor |
LightGoldenRodYellow
The LightGoldenRodYellow color. 0xFAFAD2
Declaration
public static readonly UIColor LightGoldenRodYellow
Field Value
| Type | Description |
|---|---|
| UIColor |
LightGray
The LightGray color. 0xD3D3D3
Declaration
public static readonly UIColor LightGray
Field Value
| Type | Description |
|---|---|
| UIColor |
LightGreen
The LightGreen color. 0x90EE90
Declaration
public static readonly UIColor LightGreen
Field Value
| Type | Description |
|---|---|
| UIColor |
LightGrey
The LightGrey color. 0xD3D3D3
Declaration
public static readonly UIColor LightGrey
Field Value
| Type | Description |
|---|---|
| UIColor |
LightPink
The LightPink color. 0xFFB6C1
Declaration
public static readonly UIColor LightPink
Field Value
| Type | Description |
|---|---|
| UIColor |
LightSalmon
The LightSalmon color. 0xFFA07A
Declaration
public static readonly UIColor LightSalmon
Field Value
| Type | Description |
|---|---|
| UIColor |
LightSeaGreen
The LightSeaGreen color. 0x20B2AA
Declaration
public static readonly UIColor LightSeaGreen
Field Value
| Type | Description |
|---|---|
| UIColor |
LightSkyBlue
The LightSkyBlue color. 0x87CEFA
Declaration
public static readonly UIColor LightSkyBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
LightSlateGray
The LightSlateGray color. 0x778899
Declaration
public static readonly UIColor LightSlateGray
Field Value
| Type | Description |
|---|---|
| UIColor |
LightSlateGrey
The LightSlateGrey color. 0x778899
Declaration
public static readonly UIColor LightSlateGrey
Field Value
| Type | Description |
|---|---|
| UIColor |
LightSteelBlue
The LightSteelBlue color. 0xB0C4DE
Declaration
public static readonly UIColor LightSteelBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
LightYellow
The LightYellow color. 0xFFFFE0
Declaration
public static readonly UIColor LightYellow
Field Value
| Type | Description |
|---|---|
| UIColor |
Lime
The Lime color. 0x00FF00
Declaration
public static readonly UIColor Lime
Field Value
| Type | Description |
|---|---|
| UIColor |
LimeGreen
The LimeGreen color. 0x32CD32
Declaration
public static readonly UIColor LimeGreen
Field Value
| Type | Description |
|---|---|
| UIColor |
Linen
The Linen color. 0xFAF0E6
Declaration
public static readonly UIColor Linen
Field Value
| Type | Description |
|---|---|
| UIColor |
Magenta
The Magenta color. 0xFF00FF
Declaration
public static readonly UIColor Magenta
Field Value
| Type | Description |
|---|---|
| UIColor |
Maroon
The Maroon color. 0xB03060
Declaration
public static readonly UIColor Maroon
Field Value
| Type | Description |
|---|---|
| UIColor |
MediumAquaMarine
The MediumAquaMarine color. 0x66CDAA
Declaration
public static readonly UIColor MediumAquaMarine
Field Value
| Type | Description |
|---|---|
| UIColor |
MediumBlue
The MediumBlue color. 0x0000CD
Declaration
public static readonly UIColor MediumBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
MediumOrchid
The MediumOrchid color. 0xBA55D3
Declaration
public static readonly UIColor MediumOrchid
Field Value
| Type | Description |
|---|---|
| UIColor |
MediumPurple
The MediumPurple color. 0x9370DB
Declaration
public static readonly UIColor MediumPurple
Field Value
| Type | Description |
|---|---|
| UIColor |
MediumSeaGreen
The MediumSeaGreen color. 0x3CB371
Declaration
public static readonly UIColor MediumSeaGreen
Field Value
| Type | Description |
|---|---|
| UIColor |
MediumSlateBlue
The MediumSlateBlue color. 0x7B68EE
Declaration
public static readonly UIColor MediumSlateBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
MediumSpringGreen
The MediumSpringGreen color. 0x00FA9A
Declaration
public static readonly UIColor MediumSpringGreen
Field Value
| Type | Description |
|---|---|
| UIColor |
MediumTurquoise
The MediumTurquoise color. 0x48D1CC
Declaration
public static readonly UIColor MediumTurquoise
Field Value
| Type | Description |
|---|---|
| UIColor |
MediumVioletred
The MediumVioletred color. 0xC71585
Declaration
public static readonly UIColor MediumVioletred
Field Value
| Type | Description |
|---|---|
| UIColor |
MidnightBlue
The MidnightBlue color. 0x191970
Declaration
public static readonly UIColor MidnightBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
MintCream
The MintCream color. 0xF5FFFA
Declaration
public static readonly UIColor MintCream
Field Value
| Type | Description |
|---|---|
| UIColor |
MistyRose
The MistyRose color. 0xFFE4E1
Declaration
public static readonly UIColor MistyRose
Field Value
| Type | Description |
|---|---|
| UIColor |
Moccasin
The Moccasin color. 0xFFE4B5
Declaration
public static readonly UIColor Moccasin
Field Value
| Type | Description |
|---|---|
| UIColor |
NavajoWhite
The NavajoWhite color. 0xFFDEAD
Declaration
public static readonly UIColor NavajoWhite
Field Value
| Type | Description |
|---|---|
| UIColor |
Navy
The Navy color. 0x000080
Declaration
public static readonly UIColor Navy
Field Value
| Type | Description |
|---|---|
| UIColor |
OldLace
The OldLace color. 0xFDF5E6
Declaration
public static readonly UIColor OldLace
Field Value
| Type | Description |
|---|---|
| UIColor |
Olive
The Olive color. 0x808000
Declaration
public static readonly UIColor Olive
Field Value
| Type | Description |
|---|---|
| UIColor |
OliveDrab
The OliveDrab color. 0x6B8E23
Declaration
public static readonly UIColor OliveDrab
Field Value
| Type | Description |
|---|---|
| UIColor |
Orange
The Orange color. 0xFFA500
Declaration
public static readonly UIColor Orange
Field Value
| Type | Description |
|---|---|
| UIColor |
OrangeRed
The OrangeRed color. 0xFF4500
Declaration
public static readonly UIColor OrangeRed
Field Value
| Type | Description |
|---|---|
| UIColor |
Orchid
The Orchid color. 0xDA70D6
Declaration
public static readonly UIColor Orchid
Field Value
| Type | Description |
|---|---|
| UIColor |
PaleGoldenRod
The PaleGoldenRod color. 0xEEE8AA
Declaration
public static readonly UIColor PaleGoldenRod
Field Value
| Type | Description |
|---|---|
| UIColor |
PaleGreen
The PaleGreen color. 0x98FB98
Declaration
public static readonly UIColor PaleGreen
Field Value
| Type | Description |
|---|---|
| UIColor |
PaleTurquoise
The PaleTurquoise color. 0xAFEEEE
Declaration
public static readonly UIColor PaleTurquoise
Field Value
| Type | Description |
|---|---|
| UIColor |
PaleVioletRed
The PaleVioletRed color. 0xDB7093
Declaration
public static readonly UIColor PaleVioletRed
Field Value
| Type | Description |
|---|---|
| UIColor |
PapayaWhip
The PapayaWhip color. 0xFFEFD5
Declaration
public static readonly UIColor PapayaWhip
Field Value
| Type | Description |
|---|---|
| UIColor |
PeachPuff
The PeachPuff color. 0xFFDAB9
Declaration
public static readonly UIColor PeachPuff
Field Value
| Type | Description |
|---|---|
| UIColor |
Peru
The Peru color. 0xCD853F
Declaration
public static readonly UIColor Peru
Field Value
| Type | Description |
|---|---|
| UIColor |
Pink
The Pink color. 0xFFC0CB
Declaration
public static readonly UIColor Pink
Field Value
| Type | Description |
|---|---|
| UIColor |
Plum
The Plum color. 0xDDA0DD
Declaration
public static readonly UIColor Plum
Field Value
| Type | Description |
|---|---|
| UIColor |
PowderBlue
The PowderBlue color. 0xB0E0E6
Declaration
public static readonly UIColor PowderBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
Purple
The Purple color. 0xA020F0
Declaration
public static readonly UIColor Purple
Field Value
| Type | Description |
|---|---|
| UIColor |
Red
The Red color. 0xFF0000
Declaration
public static readonly UIColor Red
Field Value
| Type | Description |
|---|---|
| UIColor |
RosyBrown
The RosyBrown color. 0xBC8F8F
Declaration
public static readonly UIColor RosyBrown
Field Value
| Type | Description |
|---|---|
| UIColor |
RoyalBlue
The RoyalBlue color. 0x4169E1
Declaration
public static readonly UIColor RoyalBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
SaddleBrown
The SaddleBrown color. 0x8B4513
Declaration
public static readonly UIColor SaddleBrown
Field Value
| Type | Description |
|---|---|
| UIColor |
Salmon
The Salmon color. 0xFA8072
Declaration
public static readonly UIColor Salmon
Field Value
| Type | Description |
|---|---|
| UIColor |
SandyBrown
The SandyBrown color. 0xF4A460
Declaration
public static readonly UIColor SandyBrown
Field Value
| Type | Description |
|---|---|
| UIColor |
SeaGreen
The SeaGreen color. 0x2E8B57
Declaration
public static readonly UIColor SeaGreen
Field Value
| Type | Description |
|---|---|
| UIColor |
SeaShell
The SeaShell color. 0xFFF5EE
Declaration
public static readonly UIColor SeaShell
Field Value
| Type | Description |
|---|---|
| UIColor |
Sienna
The Sienna color. 0xA0522D
Declaration
public static readonly UIColor Sienna
Field Value
| Type | Description |
|---|---|
| UIColor |
Silver
The Silver color. 0xC0C0C0
Declaration
public static readonly UIColor Silver
Field Value
| Type | Description |
|---|---|
| UIColor |
SkyBlue
The SkyBlue color. 0x87CEEB
Declaration
public static readonly UIColor SkyBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
SlateBlue
The SlateBlue color. 0x6A5ACD
Declaration
public static readonly UIColor SlateBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
SlateGray
The SlateGray color. 0x708090
Declaration
public static readonly UIColor SlateGray
Field Value
| Type | Description |
|---|---|
| UIColor |
SlateGrey
The SlateGrey color. 0x708090
Declaration
public static readonly UIColor SlateGrey
Field Value
| Type | Description |
|---|---|
| UIColor |
Snow
The Snow color. 0xFFFAFA
Declaration
public static readonly UIColor Snow
Field Value
| Type | Description |
|---|---|
| UIColor |
SpringGreen
The SpringGreen color. 0x00FF7F
Declaration
public static readonly UIColor SpringGreen
Field Value
| Type | Description |
|---|---|
| UIColor |
SteelBlue
The SteelBlue color. 0x4682B4
Declaration
public static readonly UIColor SteelBlue
Field Value
| Type | Description |
|---|---|
| UIColor |
Tan
The Tan color. 0xD2B48C
Declaration
public static readonly UIColor Tan
Field Value
| Type | Description |
|---|---|
| UIColor |
Teal
The Teal color. 0x008080
Declaration
public static readonly UIColor Teal
Field Value
| Type | Description |
|---|---|
| UIColor |
Thistle
The Thistle color. 0xD8BFD8
Declaration
public static readonly UIColor Thistle
Field Value
| Type | Description |
|---|---|
| UIColor |
Tomato
The Tomato color. 0xFF6347
Declaration
public static readonly UIColor Tomato
Field Value
| Type | Description |
|---|---|
| UIColor |
Transparent
The Transparent color. 0x000000 with alpha = 0.0f
Declaration
public static readonly UIColor Transparent
Field Value
| Type | Description |
|---|---|
| UIColor |
Turquoise
The Turquoise color. 0x40E0D0
Declaration
public static readonly UIColor Turquoise
Field Value
| Type | Description |
|---|---|
| UIColor |
Violet
The Violet color. 0xEE82EE
Declaration
public static readonly UIColor Violet
Field Value
| Type | Description |
|---|---|
| UIColor |
Wheat
The Wheat color. 0xF5DEB3
Declaration
public static readonly UIColor Wheat
Field Value
| Type | Description |
|---|---|
| UIColor |
White
The White color. 0xFFFFFF
Declaration
public static readonly UIColor White
Field Value
| Type | Description |
|---|---|
| UIColor |
WhiteSmoke
The WhiteSmoke color. 0xF5F5F5
Declaration
public static readonly UIColor WhiteSmoke
Field Value
| Type | Description |
|---|---|
| UIColor |
Yellow
The Yellow color. 0xFFFF00
Declaration
public static readonly UIColor Yellow
Field Value
| Type | Description |
|---|---|
| UIColor |
YellowGreen
The YellowGreen color. 0x9ACD32
Declaration
public static readonly UIColor YellowGreen
Field Value
| Type | Description |
|---|---|
| UIColor |
Properties
View SourceA
Gets the alpha component of the color.
Declaration
public readonly float A { get; }
Property Value
| Type | Description |
|---|---|
| float |
B
Gets the blue component of the color.
Declaration
public readonly float B { get; }
Property Value
| Type | Description |
|---|---|
| float |
G
Gets the green component of the color.
Declaration
public readonly float G { get; }
Property Value
| Type | Description |
|---|---|
| float |
Id
Gets the unique identifier of the token.
Declaration
public readonly string Id { get; }
Property Value
| Type | Description |
|---|---|
| string |
IsDefault
Gets a value indicating whether this is default.
Declaration
public readonly bool IsDefault { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsToken
Whether this is token.
Declaration
public readonly bool IsToken { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsZero
Gets a value indicating whether this is zero.
Declaration
public readonly bool IsZero { get; }
Property Value
| Type | Description |
|---|---|
| bool |
R
Gets the red component of the color.
Declaration
public readonly float R { get; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
View SourceEquals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Equals(UIColor)
Whether this is equivalent to other.
Declaration
public bool Equals(UIColor other)
Parameters
| Type | Name | Description |
|---|---|---|
| UIColor | other |
Returns
| Type | Description |
|---|---|
| bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
MultiplyAlpha(float)
Multiplies the alpha component of the color by the specified value.
Declaration
public readonly UIColor MultiplyAlpha(float alpha)
Parameters
| Type | Name | Description |
|---|---|---|
| float | alpha | The value to multiply the alpha component by. |
Returns
| Type | Description |
|---|---|
| UIColor | The new color. |
Token(string)
Creates a new color from the token table.
Declaration
public static UIColor Token(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The unique identifier of the token. |
Returns
| Type | Description |
|---|---|
| UIColor |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
WithAlpha(float)
Returns a new color object with the specified alpha value.
Declaration
public readonly UIColor WithAlpha(float alpha)
Parameters
| Type | Name | Description |
|---|---|---|
| float | alpha | The new alpha value. |
Returns
| Type | Description |
|---|---|
| UIColor | A new color object with the specified alpha value. |
Operators
View Sourceoperator ==(UIColor, UIColor)
Compares two UIColor for equality.
Declaration
public static bool operator ==(UIColor operand1, UIColor operand2)
Parameters
| Type | Name | Description |
|---|---|---|
| UIColor | operand1 | The first operand object. |
| UIColor | operand2 | The second operand object. |
Returns
| Type | Description |
|---|---|
| bool | True if both are equal, otherwise false. |
implicit operator Color(UIColor)
Declaration
public static implicit operator Color(UIColor uiColor)
Parameters
| Type | Name | Description |
|---|---|---|
| UIColor | uiColor | The UIColor to convert. |
Returns
| Type | Description |
|---|---|
| Color | The converted Color. |
operator !=(UIColor, UIColor)
Compares two UIColor for inequality.
Declaration
public static bool operator !=(UIColor operand1, UIColor operand2)
Parameters
| Type | Name | Description |
|---|---|---|
| UIColor | operand1 | The first operand object. |
| UIColor | operand2 | The second operand object. |
Returns
| Type | Description |
|---|---|
| bool | True if both are not equal, otherwise false. |
Explicit Interface Implementations
View SourceIToken<UIColor>.Value
The value of the token.
Declaration
readonly UIColor IToken<UIColor>.Value { get; }
Returns
| Type | Description |
|---|---|
| UIColor |