Class Color
Definition
- Assembly:
- Tizen.NUI.dll
The Color class.
public class Color : Disposable, ICloneable
- Inheritance
- Implements
-
ICloneable
Constructors
View SourceColor()
Default constructor
Declaration
public Color()
Color(Color)
The conversion constructor from an System.Drawing.Color instance.
Declaration
public Color(System.Drawing.Color color)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | color | System.Drawing.Color instance |
Color(float, float, float, float)
The constructor.
Declaration
public Color(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. |
Color(float[])
The conversion constructor from an array of four floats.
Declaration
public Color(float[] array)
Parameters
Type | Name | Description |
---|---|---|
float[] | array | array Array of R,G,B,A. |
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() |
Color(Color)
The copy constructor.
Declaration
public Color(Color other)
Parameters
Type | Name | Description |
---|---|---|
Color | other | The copy target. |
Fields
View SourceAliceBlue
Gets the alice_blue colored Color class.
Declaration
public static readonly Color AliceBlue
Field Value
Type | Description |
---|---|
Color |
AntiqueWhite
Gets the antique_white colored Color class.
Declaration
public static readonly Color AntiqueWhite
Field Value
Type | Description |
---|---|
Color |
Aqua
Gets the aqua colored Color class.
Declaration
public static readonly Color Aqua
Field Value
Type | Description |
---|---|
Color |
AquaMarine
Gets the aqua_marine colored Color class.
Declaration
public static readonly Color AquaMarine
Field Value
Type | Description |
---|---|
Color |
Azure
Gets the azure colored Color class.
Declaration
public static readonly Color Azure
Field Value
Type | Description |
---|---|
Color |
Beige
Gets the beige colored Color class.
Declaration
public static readonly Color Beige
Field Value
Type | Description |
---|---|
Color |
Bisque
Gets the bisque colored Color class.
Declaration
public static readonly Color Bisque
Field Value
Type | Description |
---|---|
Color |
Black
Gets the black colored Color class.
Declaration
public static readonly Color Black
Field Value
Type | Description |
---|---|
Color |
BlancheDalmond
Gets the blanche_dalmond colored Color class.
Declaration
public static readonly Color BlancheDalmond
Field Value
Type | Description |
---|---|
Color |
Blue
Gets the blue colored Color class.
Declaration
public static readonly Color Blue
Field Value
Type | Description |
---|---|
Color |
BlueViolet
Gets the blue_violet colored Color class.
Declaration
public static readonly Color BlueViolet
Field Value
Type | Description |
---|---|
Color |
Brown
Gets the brown colored Color class.
Declaration
public static readonly Color Brown
Field Value
Type | Description |
---|---|
Color |
BurlyWood
Gets the burly_wood colored Color class.
Declaration
public static readonly Color BurlyWood
Field Value
Type | Description |
---|---|
Color |
CadetBlue
Gets the cadet_blue colored Color class.
Declaration
public static readonly Color CadetBlue
Field Value
Type | Description |
---|---|
Color |
Chartreuse
Gets the chartreuse colored Color class.
Declaration
public static readonly Color Chartreuse
Field Value
Type | Description |
---|---|
Color |
Chocolate
Gets the chocolate colored Color class.
Declaration
public static readonly Color Chocolate
Field Value
Type | Description |
---|---|
Color |
Coral
Gets the coral colored Color class.
Declaration
public static readonly Color Coral
Field Value
Type | Description |
---|---|
Color |
CornflowerBlue
Gets the cornflower_blue colored Color class.
Declaration
public static readonly Color CornflowerBlue
Field Value
Type | Description |
---|---|
Color |
Cornsilk
Gets the cornsilk colored Color class.
Declaration
public static readonly Color Cornsilk
Field Value
Type | Description |
---|---|
Color |
Crimson
Gets the crimson colored Color class.
Declaration
public static readonly Color Crimson
Field Value
Type | Description |
---|---|
Color |
Cyan
Gets the cyan colored Color class.
Declaration
public static readonly Color Cyan
Field Value
Type | Description |
---|---|
Color |
DarkBlue
Gets the dark_blue colored Color class.
Declaration
public static readonly Color DarkBlue
Field Value
Type | Description |
---|---|
Color |
DarkCyan
Gets the dark_cyan colored Color class.
Declaration
public static readonly Color DarkCyan
Field Value
Type | Description |
---|---|
Color |
DarkGoldenrod
Gets the dark_goldenrod colored Color class.
Declaration
public static readonly Color DarkGoldenrod
Field Value
Type | Description |
---|---|
Color |
DarkGray
Gets the dark_gray colored Color class.
Declaration
public static readonly Color DarkGray
Field Value
Type | Description |
---|---|
Color |
DarkGreen
Gets the dark_green colored Color class.
Declaration
public static readonly Color DarkGreen
Field Value
Type | Description |
---|---|
Color |
DarkGrey
Gets the dark_grey colored Color class.
Declaration
public static readonly Color DarkGrey
Field Value
Type | Description |
---|---|
Color |
DarkKhaki
Gets the dark_khaki colored Color class.
Declaration
public static readonly Color DarkKhaki
Field Value
Type | Description |
---|---|
Color |
DarkMagenta
Gets the dark_magenta colored Color class.
Declaration
public static readonly Color DarkMagenta
Field Value
Type | Description |
---|---|
Color |
DarkOliveGreen
Gets the dark_olive_green colored Color class.
Declaration
public static readonly Color DarkOliveGreen
Field Value
Type | Description |
---|---|
Color |
DarkOrange
Gets the dark_orange colored Color class.
Declaration
public static readonly Color DarkOrange
Field Value
Type | Description |
---|---|
Color |
DarkOrchid
Gets the dark_orchid colored Color class.
Declaration
public static readonly Color DarkOrchid
Field Value
Type | Description |
---|---|
Color |
DarkRed
Gets the dark_red colored Color class.
Declaration
public static readonly Color DarkRed
Field Value
Type | Description |
---|---|
Color |
DarkSalmon
Gets the dark_salmon colored Color class.
Declaration
public static readonly Color DarkSalmon
Field Value
Type | Description |
---|---|
Color |
DarkSeaGreen
Gets the dark_sea_green colored Color class.
Declaration
public static readonly Color DarkSeaGreen
Field Value
Type | Description |
---|---|
Color |
DarkSlateBlue
Gets the dark_slate_blue colored Color class.
Declaration
public static readonly Color DarkSlateBlue
Field Value
Type | Description |
---|---|
Color |
DarkSlateGray
Gets the dark_slate_gray colored Color class.
Declaration
public static readonly Color DarkSlateGray
Field Value
Type | Description |
---|---|
Color |
DarkSlateGrey
Gets the dark_slate_grey colored Color class.
Declaration
public static readonly Color DarkSlateGrey
Field Value
Type | Description |
---|---|
Color |
DarkTurquoise
Gets the dark_turquoise colored Color class.
Declaration
public static readonly Color DarkTurquoise
Field Value
Type | Description |
---|---|
Color |
DarkViolet
Gets the dark_violet colored Color class.
Declaration
public static readonly Color DarkViolet
Field Value
Type | Description |
---|---|
Color |
DeepPink
Gets the deep_pink colored Color class.
Declaration
public static readonly Color DeepPink
Field Value
Type | Description |
---|---|
Color |
DeepSkyBlue
Gets the deep_sky_blue colored Color class.
Declaration
public static readonly Color DeepSkyBlue
Field Value
Type | Description |
---|---|
Color |
DimGray
Gets the dim_gray colored Color class.
Declaration
public static readonly Color DimGray
Field Value
Type | Description |
---|---|
Color |
DimGrey
Gets the dim_grey colored Color class.
Declaration
public static readonly Color DimGrey
Field Value
Type | Description |
---|---|
Color |
DodgerBlue
Gets the dodger_blue colored Color class.
Declaration
public static readonly Color DodgerBlue
Field Value
Type | Description |
---|---|
Color |
FireBrick
Gets the fire_brick colored Color class.
Declaration
public static readonly Color FireBrick
Field Value
Type | Description |
---|---|
Color |
FloralWhite
Gets the floral_white colored Color class.
Declaration
public static readonly Color FloralWhite
Field Value
Type | Description |
---|---|
Color |
ForestGreen
Gets the forest_green colored Color class.
Declaration
public static readonly Color ForestGreen
Field Value
Type | Description |
---|---|
Color |
Fuchsia
Gets the fuchsia colored Color class.
Declaration
public static readonly Color Fuchsia
Field Value
Type | Description |
---|---|
Color |
Gainsboro
Gets the gainsboro colored Color class.
Declaration
public static readonly Color Gainsboro
Field Value
Type | Description |
---|---|
Color |
GhostWhite
Gets the ghost_white colored Color class.
Declaration
public static readonly Color GhostWhite
Field Value
Type | Description |
---|---|
Color |
Gold
Gets the gold colored Color class.
Declaration
public static readonly Color Gold
Field Value
Type | Description |
---|---|
Color |
GoldenRod
Gets the golden_rod colored Color class.
Declaration
public static readonly Color GoldenRod
Field Value
Type | Description |
---|---|
Color |
Gray
Gets the gray colored Color class.
Declaration
public static readonly Color Gray
Field Value
Type | Description |
---|---|
Color |
Green
Gets the green colored Color class.
Declaration
public static readonly Color Green
Field Value
Type | Description |
---|---|
Color |
GreenYellow
Gets the green_yellow colored Color class.
Declaration
public static readonly Color GreenYellow
Field Value
Type | Description |
---|---|
Color |
Grey
Gets the grey colored Color class.
Declaration
public static readonly Color Grey
Field Value
Type | Description |
---|---|
Color |
Honeydew
Gets the honeydew colored Color class.
Declaration
public static readonly Color Honeydew
Field Value
Type | Description |
---|---|
Color |
HotPink
Gets the hot_pink colored Color class.
Declaration
public static readonly Color HotPink
Field Value
Type | Description |
---|---|
Color |
Indianred
Gets the indianred colored Color class.
Declaration
public static readonly Color Indianred
Field Value
Type | Description |
---|---|
Color |
Indigo
Gets the indigo colored Color class.
Declaration
public static readonly Color Indigo
Field Value
Type | Description |
---|---|
Color |
Ivory
Gets the ivory colored Color class.
Declaration
public static readonly Color Ivory
Field Value
Type | Description |
---|---|
Color |
Khaki
Gets the khaki colored Color class.
Declaration
public static readonly Color Khaki
Field Value
Type | Description |
---|---|
Color |
Lavender
Gets the lavender colored Color class.
Declaration
public static readonly Color Lavender
Field Value
Type | Description |
---|---|
Color |
LavenderBlush
Gets the lavender_blush colored Color class.
Declaration
public static readonly Color LavenderBlush
Field Value
Type | Description |
---|---|
Color |
LawnGreen
Gets the lawn_green colored Color class.
Declaration
public static readonly Color LawnGreen
Field Value
Type | Description |
---|---|
Color |
LemonChiffon
Gets the lemon_chiffon colored Color class.
Declaration
public static readonly Color LemonChiffon
Field Value
Type | Description |
---|---|
Color |
LightBlue
Gets the light_blue colored Color class.
Declaration
public static readonly Color LightBlue
Field Value
Type | Description |
---|---|
Color |
LightCoral
Gets the light_coral colored Color class.
Declaration
public static readonly Color LightCoral
Field Value
Type | Description |
---|---|
Color |
LightCyan
Gets the light_cyan colored Color class.
Declaration
public static readonly Color LightCyan
Field Value
Type | Description |
---|---|
Color |
LightGoldenRodYellow
Gets the light_golden_rod_yellow colored Color class.
Declaration
public static readonly Color LightGoldenRodYellow
Field Value
Type | Description |
---|---|
Color |
LightGray
Gets the light_gray colored Color class.
Declaration
public static readonly Color LightGray
Field Value
Type | Description |
---|---|
Color |
LightGreen
Gets the light_green colored Color class.
Declaration
public static readonly Color LightGreen
Field Value
Type | Description |
---|---|
Color |
LightGrey
Gets the light_grey colored Color class.
Declaration
public static readonly Color LightGrey
Field Value
Type | Description |
---|---|
Color |
LightPink
Gets the light_pink colored Color class.
Declaration
public static readonly Color LightPink
Field Value
Type | Description |
---|---|
Color |
LightSalmon
Gets the light_salmon colored Color class.
Declaration
public static readonly Color LightSalmon
Field Value
Type | Description |
---|---|
Color |
LightSeaGreen
Gets the light_sea_green colored Color class.
Declaration
public static readonly Color LightSeaGreen
Field Value
Type | Description |
---|---|
Color |
LightSkyBlue
Gets the light_sky_blue colored Color class.
Declaration
public static readonly Color LightSkyBlue
Field Value
Type | Description |
---|---|
Color |
LightSlateGray
Gets the light_slate_gray colored Color class.
Declaration
public static readonly Color LightSlateGray
Field Value
Type | Description |
---|---|
Color |
LightSlateGrey
Gets the light_slate_grey colored Color class.
Declaration
public static readonly Color LightSlateGrey
Field Value
Type | Description |
---|---|
Color |
LightSteelBlue
Gets the light_steel_blue colored Color class.
Declaration
public static readonly Color LightSteelBlue
Field Value
Type | Description |
---|---|
Color |
LightYellow
Gets the light_yellow colored Color class.
Declaration
public static readonly Color LightYellow
Field Value
Type | Description |
---|---|
Color |
Lime
Gets the lime colored Color class.
Declaration
public static readonly Color Lime
Field Value
Type | Description |
---|---|
Color |
LimeGreen
Gets the lime_green colored Color class.
Declaration
public static readonly Color LimeGreen
Field Value
Type | Description |
---|---|
Color |
Linen
Gets the linen colored Color class.
Declaration
public static readonly Color Linen
Field Value
Type | Description |
---|---|
Color |
Magenta
Gets the magenta colored Color class.
Declaration
public static readonly Color Magenta
Field Value
Type | Description |
---|---|
Color |
Maroon
Gets the maroon colored Color class.
Declaration
public static readonly Color Maroon
Field Value
Type | Description |
---|---|
Color |
MediumAquaMarine
Gets the medium_aqua_marine colored Color class.
Declaration
public static readonly Color MediumAquaMarine
Field Value
Type | Description |
---|---|
Color |
MediumBlue
Gets the medium_blue colored Color class.
Declaration
public static readonly Color MediumBlue
Field Value
Type | Description |
---|---|
Color |
MediumOrchid
Gets the medium_orchid colored Color class.
Declaration
public static readonly Color MediumOrchid
Field Value
Type | Description |
---|---|
Color |
MediumPurple
Gets the medium_purple colored Color class.
Declaration
public static readonly Color MediumPurple
Field Value
Type | Description |
---|---|
Color |
MediumSeaGreen
Gets the medium_sea_green colored Color class.
Declaration
public static readonly Color MediumSeaGreen
Field Value
Type | Description |
---|---|
Color |
MediumSlateBlue
Gets the medium_slate_blue colored Color class.
Declaration
public static readonly Color MediumSlateBlue
Field Value
Type | Description |
---|---|
Color |
MediumSpringGreen
Gets the medium_spring_green colored Color class.
Declaration
public static readonly Color MediumSpringGreen
Field Value
Type | Description |
---|---|
Color |
MediumTurquoise
Gets the medium_turquoise colored Color class.
Declaration
public static readonly Color MediumTurquoise
Field Value
Type | Description |
---|---|
Color |
MediumVioletred
Gets the medium_violetred colored Color class.
Declaration
public static readonly Color MediumVioletred
Field Value
Type | Description |
---|---|
Color |
MidnightBlue
Gets the midnight_blue colored Color class.
Declaration
public static readonly Color MidnightBlue
Field Value
Type | Description |
---|---|
Color |
MintCream
Gets the mint_cream colored Color class.
Declaration
public static readonly Color MintCream
Field Value
Type | Description |
---|---|
Color |
MistyRose
Gets the misty_rose colored Color class.
Declaration
public static readonly Color MistyRose
Field Value
Type | Description |
---|---|
Color |
Moccasin
Gets the moccasin colored Color class.
Declaration
public static readonly Color Moccasin
Field Value
Type | Description |
---|---|
Color |
NavajoWhite
Gets the navajo_white colored Color class.
Declaration
public static readonly Color NavajoWhite
Field Value
Type | Description |
---|---|
Color |
Navy
Gets the navy colored Color class.
Declaration
public static readonly Color Navy
Field Value
Type | Description |
---|---|
Color |
OldLace
Gets the old_lace colored Color class.
Declaration
public static readonly Color OldLace
Field Value
Type | Description |
---|---|
Color |
Olive
Gets the olive colored Color class.
Declaration
public static readonly Color Olive
Field Value
Type | Description |
---|---|
Color |
OliveDrab
Gets the olive_drab colored Color class.
Declaration
public static readonly Color OliveDrab
Field Value
Type | Description |
---|---|
Color |
Orange
Gets the orange colored Color class.
Declaration
public static readonly Color Orange
Field Value
Type | Description |
---|---|
Color |
OrangeRed
Gets the orange_red colored Color class.
Declaration
public static readonly Color OrangeRed
Field Value
Type | Description |
---|---|
Color |
Orchid
Gets the orchid colored Color class.
Declaration
public static readonly Color Orchid
Field Value
Type | Description |
---|---|
Color |
PaleGoldenRod
Gets the pale_golden_rod colored Color class.
Declaration
public static readonly Color PaleGoldenRod
Field Value
Type | Description |
---|---|
Color |
PaleGreen
Gets the pale_green colored Color class.
Declaration
public static readonly Color PaleGreen
Field Value
Type | Description |
---|---|
Color |
PaleTurquoise
Gets the Pale_Turquoise colored Color class.
Declaration
public static readonly Color PaleTurquoise
Field Value
Type | Description |
---|---|
Color |
PaleVioletRed
Gets the Pale_Violet_Red colored Color class.
Declaration
public static readonly Color PaleVioletRed
Field Value
Type | Description |
---|---|
Color |
PapayaWhip
Gets the Papaya_whip colored Color class.
Declaration
public static readonly Color PapayaWhip
Field Value
Type | Description |
---|---|
Color |
PeachPuff
Gets the Peach_puff colored Color class.
Declaration
public static readonly Color PeachPuff
Field Value
Type | Description |
---|---|
Color |
Peru
Gets the peru colored Color class.
Declaration
public static readonly Color Peru
Field Value
Type | Description |
---|---|
Color |
Pink
Gets the pink colored Color class.
Declaration
public static readonly Color Pink
Field Value
Type | Description |
---|---|
Color |
Plum
Gets the plum colored Color class.
Declaration
public static readonly Color Plum
Field Value
Type | Description |
---|---|
Color |
PowderBlue
Gets the powder_blue colored Color class.
Declaration
public static readonly Color PowderBlue
Field Value
Type | Description |
---|---|
Color |
Purple
Gets the purple colored Color class.
Declaration
public static readonly Color Purple
Field Value
Type | Description |
---|---|
Color |
Red
Gets the red colored Color class.
Declaration
public static readonly Color Red
Field Value
Type | Description |
---|---|
Color |
RosyBrown
Gets the rosy_brown colored Color class.
Declaration
public static readonly Color RosyBrown
Field Value
Type | Description |
---|---|
Color |
RoyalBlue
Gets the royal_blue colored Color class.
Declaration
public static readonly Color RoyalBlue
Field Value
Type | Description |
---|---|
Color |
SaddleBrown
Gets the saddle_brown colored Color class.
Declaration
public static readonly Color SaddleBrown
Field Value
Type | Description |
---|---|
Color |
Salmon
Gets the salmon colored Color class.
Declaration
public static readonly Color Salmon
Field Value
Type | Description |
---|---|
Color |
SandyBrown
Gets the sandy_brown colored Color class.
Declaration
public static readonly Color SandyBrown
Field Value
Type | Description |
---|---|
Color |
SeaGreen
Gets the sea_green colored Color class.
Declaration
public static readonly Color SeaGreen
Field Value
Type | Description |
---|---|
Color |
SeaShell
Gets the sea_shell colored Color class.
Declaration
public static readonly Color SeaShell
Field Value
Type | Description |
---|---|
Color |
Sienna
Gets the sienna colored Color class.
Declaration
public static readonly Color Sienna
Field Value
Type | Description |
---|---|
Color |
Silver
Gets the silver colored Color class.
Declaration
public static readonly Color Silver
Field Value
Type | Description |
---|---|
Color |
SkyBlue
Gets the sky_blue colored Color class.
Declaration
public static readonly Color SkyBlue
Field Value
Type | Description |
---|---|
Color |
SlateBlue
Gets the slate_blue colored Color class.
Declaration
public static readonly Color SlateBlue
Field Value
Type | Description |
---|---|
Color |
SlateGray
Gets the slate_gray colored Color class.
Declaration
public static readonly Color SlateGray
Field Value
Type | Description |
---|---|
Color |
SlateGrey
Gets the slate_grey colored Color class.
Declaration
public static readonly Color SlateGrey
Field Value
Type | Description |
---|---|
Color |
Snow
Gets the snow colored Color class.
Declaration
public static readonly Color Snow
Field Value
Type | Description |
---|---|
Color |
SpringGreen
Gets the spring_green colored Color class.
Declaration
public static readonly Color SpringGreen
Field Value
Type | Description |
---|---|
Color |
SteelBlue
Gets the steel_blue colored Color class.
Declaration
public static readonly Color SteelBlue
Field Value
Type | Description |
---|---|
Color |
Tan
Gets the tan colored Color class.
Declaration
public static readonly Color Tan
Field Value
Type | Description |
---|---|
Color |
Teal
Gets the teal colored Color class.
Declaration
public static readonly Color Teal
Field Value
Type | Description |
---|---|
Color |
Thistle
Gets the thistle colored Color class.
Declaration
public static readonly Color Thistle
Field Value
Type | Description |
---|---|
Color |
Tomato
Gets the tomato colored Color class.
Declaration
public static readonly Color Tomato
Field Value
Type | Description |
---|---|
Color |
Transparent
Gets the transparent colored Color class.
Declaration
public static readonly Color Transparent
Field Value
Type | Description |
---|---|
Color |
Turquoise
Gets the turquoise colored Color class.
Declaration
public static readonly Color Turquoise
Field Value
Type | Description |
---|---|
Color |
Violet
Gets the violet colored Color class.
Declaration
public static readonly Color Violet
Field Value
Type | Description |
---|---|
Color |
Wheat
Gets the wheat colored Color class.
Declaration
public static readonly Color Wheat
Field Value
Type | Description |
---|---|
Color |
White
Gets the white colored Color class.
Declaration
public static readonly Color White
Field Value
Type | Description |
---|---|
Color |
WhiteSmoke
Gets the white_smoke colored Color class.
Declaration
public static readonly Color WhiteSmoke
Field Value
Type | Description |
---|---|
Color |
Yellow
Gets the yellow colored Color class.
Declaration
public static readonly Color Yellow
Field Value
Type | Description |
---|---|
Color |
YellowGreen
Gets the yellow_green colored Color class.
Declaration
public static readonly Color YellowGreen
Field Value
Type | Description |
---|---|
Color |
Properties
View SourceA
The alpha component.
Declaration
public float A { get; set; }
Property Value
Type | Description |
---|---|
float |
Remarks
The setter is deprecated in API8 and will be removed in API10. Use the new Color(...) constructor.
B
The blue component.
Declaration
public float B { get; set; }
Property Value
Type | Description |
---|---|
float |
Remarks
The setter is deprecated in API8 and will be removed in API10. Use the new Color(...) constructor.
G
The green component.
Declaration
public float G { get; set; }
Property Value
Type | Description |
---|---|
float |
Remarks
The setter is deprecated in API8 and will be removed in API10. Use the new Color(...) constructor.
this[uint]
The array subscript operator overload.
Declaration
public float this[uint index] { get; }
Parameters
Type | Name | Description |
---|---|---|
uint | index | The subscript index. |
Property Value
Type | Description |
---|---|
float | The float at the given index. |
R
The red component.
Declaration
public float R { get; set; }
Property Value
Type | Description |
---|---|
float |
Remarks
The setter is deprecated in API8 and will be removed in API10. Use the new Color(...) constructor.
Methods
View SourceClone()
Declaration
public object Clone()
Returns
Type | Description |
---|---|
object |
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 |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
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 |
---|---|
bool | If two colors are are same, then true. |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
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 |
---|---|
bool | If two colors are are different, then true. |
ReleaseSwigCPtr(HandleRef)
Declaration
protected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Runtime.InteropServices.HandleRef | swigCPtr |
Overrides
Operators
View Sourceoperator +(Color, Color)
The addition 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 addition. |
operator /(Color, float)
The division operator.
Declaration
public static Color operator /(Color arg1, float arg2)
Parameters
Type | Name | Description |
---|---|---|
Color | arg1 | The first value. |
float | arg2 | The second value. |
Returns
Type | Description |
---|---|
Color | The color containing the result of the division. |
operator /(Color, Color)
The division 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 division. |
operator ==(Color, Color)
The == operator.
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 |
---|---|
bool | true if Colors are equal |
implicit operator Vector4(Color)
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
Type | Description |
---|---|
Vector4 |
implicit operator Color(Vector4)
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
Type | Description |
---|---|
Color |
operator !=(Color, Color)
The != operator.
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 |
---|---|
bool | true if Colors are not equal |
operator *(Color, float)
The multiplication operator.
Declaration
public static Color operator *(Color arg1, float arg2)
Parameters
Type | Name | Description |
---|---|---|
Color | arg1 | The first value. |
float | arg2 | The second value. |
Returns
Type | Description |
---|---|
Color | The color containing the result of the multiplication. |
operator *(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. |
operator -(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. |
operator -(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. |