Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
public class Color : Disposable, ICloneable
- Inheritance
-
- Implements
-
ICloneable
Constructors
Declaration
API Level: 3
View Source
Color(System.Drawing.Color)
The conversion constructor from an System.Drawing.Color instance.
Declaration
public Color(System.Drawing.Color color)
Parameters
Declaration
public Color(float r, float g, float b, float a)
Parameters
Type |
Name |
Description |
Single |
r |
The red component.
|
Single |
g |
The green component.
|
Single |
b |
The blue component.
|
Single |
a |
The alpha component.
|
API Level: 3
View Source
Color(Single[])
The conversion constructor from an array of four floats.
Declaration
public Color(float[] array)
Parameters
Type |
Name |
Description |
Single[] |
array |
array Array of R,G,B,A.
|
API Level: 3
View Source
Color(String)
The conversion constructor from text color representation.
hexcode representation : #RGB #RGBA #RRGGBB #RRGGBBAA
rgb representation : rgb(0-255,0-255,0-255) rgba(0-255,0-255,0-255,0.0-1.0)
Declaration
public Color(string textColor)
Parameters
Type |
Name |
Description |
String |
textColor |
color text representation as Hexcode, rgb() or rgba()
|
API Level: 6
Declaration
public Color(Color other)
Parameters
Type |
Name |
Description |
Color |
other |
The copy target.
|
Fields
View Source
AliceBlue
Gets the alice_blue colored Color class.
Declaration
public static readonly Color AliceBlue
Field Value
View Source
AntiqueWhite
Gets the antique_white colored Color class.
Declaration
public static readonly Color AntiqueWhite
Field Value
Declaration
public static readonly Color Aqua
Field Value
View Source
AquaMarine
Gets the aqua_marine colored Color class.
Declaration
public static readonly Color AquaMarine
Field Value
Declaration
public static readonly Color Azure
Field Value
Declaration
public static readonly Color Beige
Field Value
View Source
Bisque
Gets the bisque colored Color class.
Declaration
public static readonly Color Bisque
Field Value
Declaration
public static readonly Color Black
Field Value
API Level: 3
View Source
BlancheDalmond
Gets the blanche_dalmond colored Color class.
Declaration
public static readonly Color BlancheDalmond
Field Value
Declaration
public static readonly Color Blue
Field Value
API Level: 3
View Source
BlueViolet
Gets the blue_violet colored Color class.
Declaration
public static readonly Color BlueViolet
Field Value
Declaration
public static readonly Color Brown
Field Value
View Source
BurlyWood
Gets the burly_wood colored Color class.
Declaration
public static readonly Color BurlyWood
Field Value
View Source
CadetBlue
Gets the cadet_blue colored Color class.
Declaration
public static readonly Color CadetBlue
Field Value
View Source
Chartreuse
Gets the chartreuse colored Color class.
Declaration
public static readonly Color Chartreuse
Field Value
View Source
Chocolate
Gets the chocolate colored Color class.
Declaration
public static readonly Color Chocolate
Field Value
Declaration
public static readonly Color Coral
Field Value
View Source
CornflowerBlue
Gets the cornflower_blue colored Color class.
Declaration
public static readonly Color CornflowerBlue
Field Value
View Source
Cornsilk
Gets the cornsilk colored Color class.
Declaration
public static readonly Color Cornsilk
Field Value
View Source
Crimson
Gets the crimson colored Color class.
Declaration
public static readonly Color Crimson
Field Value
Declaration
public static readonly Color Cyan
Field Value
API Level: 3
View Source
DarkBlue
Gets the dark_blue colored Color class.
Declaration
public static readonly Color DarkBlue
Field Value
View Source
DarkCyan
Gets the dark_cyan colored Color class.
Declaration
public static readonly Color DarkCyan
Field Value
View Source
DarkGoldenrod
Gets the dark_goldenrod colored Color class.
Declaration
public static readonly Color DarkGoldenrod
Field Value
View Source
DarkGray
Gets the dark_gray colored Color class.
Declaration
public static readonly Color DarkGray
Field Value
View Source
DarkGreen
Gets the dark_green colored Color class.
Declaration
public static readonly Color DarkGreen
Field Value
View Source
DarkGrey
Gets the dark_grey colored Color class.
Declaration
public static readonly Color DarkGrey
Field Value
View Source
DarkKhaki
Gets the dark_khaki colored Color class.
Declaration
public static readonly Color DarkKhaki
Field Value
View Source
DarkMagenta
Gets the dark_magenta colored Color class.
Declaration
public static readonly Color DarkMagenta
Field Value
View Source
DarkOliveGreen
Gets the dark_olive_green colored Color class.
Declaration
public static readonly Color DarkOliveGreen
Field Value
View Source
DarkOrange
Gets the dark_orange colored Color class.
Declaration
public static readonly Color DarkOrange
Field Value
View Source
DarkOrchid
Gets the dark_orchid colored Color class.
Declaration
public static readonly Color DarkOrchid
Field Value
View Source
DarkRed
Gets the dark_red colored Color class.
Declaration
public static readonly Color DarkRed
Field Value
View Source
DarkSalmon
Gets the dark_salmon colored Color class.
Declaration
public static readonly Color DarkSalmon
Field Value
View Source
DarkSeaGreen
Gets the dark_sea_green colored Color class.
Declaration
public static readonly Color DarkSeaGreen
Field Value
View Source
DarkSlateBlue
Gets the dark_slate_blue colored Color class.
Declaration
public static readonly Color DarkSlateBlue
Field Value
View Source
DarkSlateGray
Gets the dark_slate_gray colored Color class.
Declaration
public static readonly Color DarkSlateGray
Field Value
View Source
DarkSlateGrey
Gets the dark_slate_grey colored Color class.
Declaration
public static readonly Color DarkSlateGrey
Field Value
View Source
DarkTurquoise
Gets the dark_turquoise colored Color class.
Declaration
public static readonly Color DarkTurquoise
Field Value
View Source
DarkViolet
Gets the dark_violet colored Color class.
Declaration
public static readonly Color DarkViolet
Field Value
View Source
DeepPink
Gets the deep_pink colored Color class.
Declaration
public static readonly Color DeepPink
Field Value
View Source
DeepSkyBlue
Gets the deep_sky_blue colored Color class.
Declaration
public static readonly Color DeepSkyBlue
Field Value
View Source
DimGray
Gets the dim_gray colored Color class.
Declaration
public static readonly Color DimGray
Field Value
View Source
DimGrey
Gets the dim_grey colored Color class.
Declaration
public static readonly Color DimGrey
Field Value
View Source
DodgerBlue
Gets the dodger_blue colored Color class.
Declaration
public static readonly Color DodgerBlue
Field Value
View Source
FireBrick
Gets the fire_brick colored Color class.
Declaration
public static readonly Color FireBrick
Field Value
View Source
FloralWhite
Gets the floral_white colored Color class.
Declaration
public static readonly Color FloralWhite
Field Value
View Source
ForestGreen
Gets the forest_green colored Color class.
Declaration
public static readonly Color ForestGreen
Field Value
View Source
Fuchsia
Gets the fuchsia colored Color class.
Declaration
public static readonly Color Fuchsia
Field Value
View Source
Gainsboro
Gets the gainsboro colored Color class.
Declaration
public static readonly Color Gainsboro
Field Value
View Source
GhostWhite
Gets the ghost_white colored Color class.
Declaration
public static readonly Color GhostWhite
Field Value
Declaration
public static readonly Color Gold
Field Value
View Source
GoldenRod
Gets the golden_rod colored Color class.
Declaration
public static readonly Color GoldenRod
Field Value
Declaration
public static readonly Color Gray
Field Value
Declaration
public static readonly Color Green
Field Value
API Level: 3
View Source
GreenYellow
Gets the green_yellow colored Color class.
Declaration
public static readonly Color GreenYellow
Field Value
Declaration
public static readonly Color Grey
Field Value
View Source
Honeydew
Gets the honeydew colored Color class.
Declaration
public static readonly Color Honeydew
Field Value
View Source
HotPink
Gets the hot_pink colored Color class.
Declaration
public static readonly Color HotPink
Field Value
View Source
Indianred
Gets the indianred colored Color class.
Declaration
public static readonly Color Indianred
Field Value
View Source
Indigo
Gets the indigo colored Color class.
Declaration
public static readonly Color Indigo
Field Value
Declaration
public static readonly Color Ivory
Field Value
Declaration
public static readonly Color Khaki
Field Value
View Source
Lavender
Gets the lavender colored Color class.
Declaration
public static readonly Color Lavender
Field Value
View Source
LavenderBlush
Gets the lavender_blush colored Color class.
Declaration
public static readonly Color LavenderBlush
Field Value
View Source
LawnGreen
Gets the lawn_green colored Color class.
Declaration
public static readonly Color LawnGreen
Field Value
View Source
LemonChiffon
Gets the lemon_chiffon colored Color class.
Declaration
public static readonly Color LemonChiffon
Field Value
View Source
LightBlue
Gets the light_blue colored Color class.
Declaration
public static readonly Color LightBlue
Field Value
View Source
LightCoral
Gets the light_coral colored Color class.
Declaration
public static readonly Color LightCoral
Field Value
View Source
LightCyan
Gets the light_cyan colored Color class.
Declaration
public static readonly Color LightCyan
Field Value
View Source
LightGoldenRodYellow
Gets the light_golden_rod_yellow colored Color class.
Declaration
public static readonly Color LightGoldenRodYellow
Field Value
View Source
LightGray
Gets the light_gray colored Color class.
Declaration
public static readonly Color LightGray
Field Value
View Source
LightGreen
Gets the light_green colored Color class.
Declaration
public static readonly Color LightGreen
Field Value
View Source
LightGrey
Gets the light_grey colored Color class.
Declaration
public static readonly Color LightGrey
Field Value
View Source
LightPink
Gets the light_pink colored Color class.
Declaration
public static readonly Color LightPink
Field Value
View Source
LightSalmon
Gets the light_salmon colored Color class.
Declaration
public static readonly Color LightSalmon
Field Value
View Source
LightSeaGreen
Gets the light_sea_green colored Color class.
Declaration
public static readonly Color LightSeaGreen
Field Value
View Source
LightSkyBlue
Gets the light_sky_blue colored Color class.
Declaration
public static readonly Color LightSkyBlue
Field Value
View Source
LightSlateGray
Gets the light_slate_gray colored Color class.
Declaration
public static readonly Color LightSlateGray
Field Value
View Source
LightSlateGrey
Gets the light_slate_grey colored Color class.
Declaration
public static readonly Color LightSlateGrey
Field Value
View Source
LightSteelBlue
Gets the light_steel_blue colored Color class.
Declaration
public static readonly Color LightSteelBlue
Field Value
View Source
LightYellow
Gets the light_yellow colored Color class.
Declaration
public static readonly Color LightYellow
Field Value
Declaration
public static readonly Color Lime
Field Value
View Source
LimeGreen
Gets the lime_green colored Color class.
Declaration
public static readonly Color LimeGreen
Field Value
Declaration
public static readonly Color Linen
Field Value
View Source
Magenta
Gets the magenta colored Color class.
Declaration
public static readonly Color Magenta
Field Value
API Level: 3
View Source
Maroon
Gets the maroon colored Color class.
Declaration
public static readonly Color Maroon
Field Value
View Source
MediumAquaMarine
Gets the medium_aqua_marine colored Color class.
Declaration
public static readonly Color MediumAquaMarine
Field Value
View Source
MediumBlue
Gets the medium_blue colored Color class.
Declaration
public static readonly Color MediumBlue
Field Value
View Source
MediumOrchid
Gets the medium_orchid colored Color class.
Declaration
public static readonly Color MediumOrchid
Field Value
View Source
MediumPurple
Gets the medium_purple colored Color class.
Declaration
public static readonly Color MediumPurple
Field Value
View Source
MediumSeaGreen
Gets the medium_sea_green colored Color class.
Declaration
public static readonly Color MediumSeaGreen
Field Value
View Source
MediumSlateBlue
Gets the medium_slate_blue colored Color class.
Declaration
public static readonly Color MediumSlateBlue
Field Value
View Source
MediumSpringGreen
Gets the medium_spring_green colored Color class.
Declaration
public static readonly Color MediumSpringGreen
Field Value
View Source
MediumTurquoise
Gets the medium_turquoise colored Color class.
Declaration
public static readonly Color MediumTurquoise
Field Value
View Source
MediumVioletred
Gets the medium_violetred colored Color class.
Declaration
public static readonly Color MediumVioletred
Field Value
View Source
MidnightBlue
Gets the midnight_blue colored Color class.
Declaration
public static readonly Color MidnightBlue
Field Value
View Source
MintCream
Gets the mint_cream colored Color class.
Declaration
public static readonly Color MintCream
Field Value
View Source
MistyRose
Gets the misty_rose colored Color class.
Declaration
public static readonly Color MistyRose
Field Value
View Source
Moccasin
Gets the moccasin colored Color class.
Declaration
public static readonly Color Moccasin
Field Value
View Source
NavajoWhite
Gets the navajo_white colored Color class.
Declaration
public static readonly Color NavajoWhite
Field Value
Declaration
public static readonly Color Navy
Field Value
View Source
OldLace
Gets the old_lace colored Color class.
Declaration
public static readonly Color OldLace
Field Value
Declaration
public static readonly Color Olive
Field Value
View Source
OliveDrab
Gets the olive_drab colored Color class.
Declaration
public static readonly Color OliveDrab
Field Value
View Source
Orange
Gets the orange colored Color class.
Declaration
public static readonly Color Orange
Field Value
View Source
OrangeRed
Gets the orange_red colored Color class.
Declaration
public static readonly Color OrangeRed
Field Value
View Source
Orchid
Gets the orchid colored Color class.
Declaration
public static readonly Color Orchid
Field Value
View Source
PaleGoldenRod
Gets the pale_golden_rod colored Color class.
Declaration
public static readonly Color PaleGoldenRod
Field Value
View Source
PaleGreen
Gets the pale_green colored Color class.
Declaration
public static readonly Color PaleGreen
Field Value
View Source
PaleTurquoise
Gets the Pale_Turquoise colored Color class.
Declaration
public static readonly Color PaleTurquoise
Field Value
View Source
PaleVioletRed
Gets the Pale_Violet_Red colored Color class.
Declaration
public static readonly Color PaleVioletRed
Field Value
View Source
PapayaWhip
Gets the Papaya_whip colored Color class.
Declaration
public static readonly Color PapayaWhip
Field Value
View Source
PeachPuff
Gets the Peach_puff colored Color class.
Declaration
public static readonly Color PeachPuff
Field Value
Declaration
public static readonly Color Peru
Field Value
Declaration
public static readonly Color Pink
Field Value
Declaration
public static readonly Color Plum
Field Value
View Source
PowderBlue
Gets the powder_blue colored Color class.
Declaration
public static readonly Color PowderBlue
Field Value
View Source
Purple
Gets the purple colored Color class.
Declaration
public static readonly Color Purple
Field Value
Declaration
public static readonly Color Red
Field Value
API Level: 3
View Source
RosyBrown
Gets the rosy_brown colored Color class.
Declaration
public static readonly Color RosyBrown
Field Value
View Source
RoyalBlue
Gets the royal_blue colored Color class.
Declaration
public static readonly Color RoyalBlue
Field Value
View Source
SaddleBrown
Gets the saddle_brown colored Color class.
Declaration
public static readonly Color SaddleBrown
Field Value
View Source
Salmon
Gets the salmon colored Color class.
Declaration
public static readonly Color Salmon
Field Value
View Source
SandyBrown
Gets the sandy_brown colored Color class.
Declaration
public static readonly Color SandyBrown
Field Value
View Source
SeaGreen
Gets the sea_green colored Color class.
Declaration
public static readonly Color SeaGreen
Field Value
View Source
SeaShell
Gets the sea_shell colored Color class.
Declaration
public static readonly Color SeaShell
Field Value
View Source
Sienna
Gets the sienna colored Color class.
Declaration
public static readonly Color Sienna
Field Value
View Source
Silver
Gets the silver colored Color class.
Declaration
public static readonly Color Silver
Field Value
View Source
SkyBlue
Gets the sky_blue colored Color class.
Declaration
public static readonly Color SkyBlue
Field Value
View Source
SlateBlue
Gets the slate_blue colored Color class.
Declaration
public static readonly Color SlateBlue
Field Value
View Source
SlateGray
Gets the slate_gray colored Color class.
Declaration
public static readonly Color SlateGray
Field Value
View Source
SlateGrey
Gets the slate_grey colored Color class.
Declaration
public static readonly Color SlateGrey
Field Value
Declaration
public static readonly Color Snow
Field Value
View Source
SpringGreen
Gets the spring_green colored Color class.
Declaration
public static readonly Color SpringGreen
Field Value
View Source
SteelBlue
Gets the steel_blue colored Color class.
Declaration
public static readonly Color SteelBlue
Field Value
Declaration
public static readonly Color Tan
Field Value
Declaration
public static readonly Color Teal
Field Value
View Source
Thistle
Gets the thistle colored Color class.
Declaration
public static readonly Color Thistle
Field Value
View Source
Tomato
Gets the tomato colored Color class.
Declaration
public static readonly Color Tomato
Field Value
View Source
Transparent
Gets the transparent colored Color class.
Declaration
public static readonly Color Transparent
Field Value
API Level: 3
View Source
Turquoise
Gets the turquoise colored Color class.
Declaration
public static readonly Color Turquoise
Field Value
View Source
Violet
Gets the violet colored Color class.
Declaration
public static readonly Color Violet
Field Value
Declaration
public static readonly Color Wheat
Field Value
Declaration
public static readonly Color White
Field Value
API Level: 3
View Source
WhiteSmoke
Gets the white_smoke colored Color class.
Declaration
public static readonly Color WhiteSmoke
Field Value
View Source
Yellow
Gets the yellow colored Color class.
Declaration
public static readonly Color Yellow
Field Value
API Level: 3
View Source
YellowGreen
Gets the yellow_green colored Color class.
Declaration
public static readonly Color YellowGreen
Field Value
Properties
Declaration
public float A { get; set; }
Property Value
API Level: 3
Declaration
public float B { get; set; }
Property Value
API Level: 3
Declaration
public float G { get; set; }
Property Value
API Level: 3
View Source
Item[UInt32]
The array subscript operator overload.
Declaration
public float this[uint index] { get; }
Parameters
Type |
Name |
Description |
UInt32 |
index |
The subscript index.
|
Property Value
Type |
Description |
Single |
The float at the given index.
|
API Level: 3
Declaration
public float R { get; set; }
Property Value
API Level: 3
Methods
Declaration
Returns
View Source
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(Object obj)
Parameters
Type |
Name |
Description |
Tizen.System.Object |
obj |
The object to compare with the current object.
|
Returns
Type |
Description |
Boolean |
true if the specified object is equal to the current object; otherwise, false.
|
View Source
EqualTo(Color)
Checks if two color classes are same.
Declaration
public bool EqualTo(Color rhs)
Parameters
Type |
Name |
Description |
Color |
rhs |
A color to be compared.
|
Returns
Type |
Description |
Boolean |
If two colors are are same, then true.
|
API Level: 3
Declaration
public override int GetHashCode()
Returns
View Source
NotEqualTo(Color)
Checks if two color classes are different.
Declaration
public bool NotEqualTo(Color rhs)
Parameters
Type |
Name |
Description |
Color |
rhs |
A color to be compared.
|
Returns
Type |
Description |
Boolean |
If two colors are are different, then true.
|
API Level: 3
View Source
ReleaseSwigCPtr(Runtime.InteropServices.HandleRef)
Declaration
protected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type |
Name |
Description |
Tizen.System.Runtime.InteropServices.HandleRef |
swigCPtr |
|
Overrides
Operators
Declaration
public static Color operator +(Color arg1, Color arg2)
Parameters
Type |
Name |
Description |
Color |
arg1 |
The first value.
|
Color |
arg2 |
The second value.
|
Returns
Type |
Description |
Color |
The color containing the result of the addition.
|
API Level: 3
Declaration
public static Color operator /(Color arg1, float arg2)
Parameters
Type |
Name |
Description |
Color |
arg1 |
The first value.
|
Single |
arg2 |
The second value.
|
Returns
Type |
Description |
Color |
The color containing the result of the division.
|
API Level: 3
Declaration
public static Color operator /(Color arg1, Color arg2)
Parameters
Type |
Name |
Description |
Color |
arg1 |
The first value.
|
Color |
arg2 |
The second value.
|
Returns
Type |
Description |
Color |
The color containing the result of the division.
|
API Level: 3
Declaration
public static bool operator ==(Color arg1, Color arg2)
Parameters
Type |
Name |
Description |
Color |
arg1 |
Color to compare
|
Color |
arg2 |
Color to be compared
|
Returns
Type |
Description |
Boolean |
true if Colors are equal
|
View Source
Implicit(Color to Vector4)
Converts the Color class to Vector4 class implicitly.
Declaration
public static implicit operator Vector4(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
A color to be converted to Vector4
|
Returns
API Level: 3
View Source
Implicit(Vector4 to Color)
Converts Vector4 class to Color class implicitly.
Declaration
public static implicit operator Color(Vector4 vec)
Parameters
Type |
Name |
Description |
Vector4 |
vec |
A Vector4 to be converted to color.
|
Returns
API Level: 3
Declaration
public static bool operator !=(Color arg1, Color arg2)
Parameters
Type |
Name |
Description |
Color |
arg1 |
Color to compare
|
Color |
arg2 |
Color to be compared
|
Returns
Type |
Description |
Boolean |
true if Colors are not equal
|
View Source
Multiply(Color, Single)
The multiplication operator.
Declaration
public static Color operator *(Color arg1, float arg2)
Parameters
Type |
Name |
Description |
Color |
arg1 |
The first value.
|
Single |
arg2 |
The second value.
|
Returns
Type |
Description |
Color |
The color containing the result of the multiplication.
|
API Level: 3
View Source
Multiply(Color, Color)
The multiplication operator.
Declaration
public static Color operator *(Color arg1, Color arg2)
Parameters
Type |
Name |
Description |
Color |
arg1 |
The first value.
|
Color |
arg2 |
The second value.
|
Returns
Type |
Description |
Color |
The color containing the result of the multiplication.
|
API Level: 3
View Source
Subtraction(Color, Color)
The subtraction operator.
Declaration
public static Color operator -(Color arg1, Color arg2)
Parameters
Type |
Name |
Description |
Color |
arg1 |
The first value.
|
Color |
arg2 |
The second value.
|
Returns
Type |
Description |
Color |
The color containing the result of the subtraction.
|
API Level: 3
View Source
UnaryNegation(Color)
The unary negation operator.
Declaration
public static Color operator -(Color arg1)
Parameters
Type |
Name |
Description |
Color |
arg1 |
The target value.
|
Returns
Type |
Description |
Color |
The color containg the negation.
|
API Level: 3
Implements
ICloneable
Extension Methods