Xamarin.Forms.Color Members

The members of Xamarin.Forms.Color are listed below.

See Also: Inherited members from System.ValueType

Public Constructors

Initialize a new gray color.
Initializes a new RGB color.
Initializes a new RGB color with an alpha channel.

Public Fields

static readonly
AquaColor. Aqua, the color that is represented by the RGB value #00ffff.
static readonly
BlackColor. Black, the color that is represented by the RGB value #000000.
static readonly
BlueColor. Blue, the color that is represented by the RGB value #0000ff.
static readonly
FuchsiaColor. Fucshia, the color that is represented by the RGB value #ff00ff.
static readonly
FuschiaColor. Fucshia, the color that is represented by the RGB value #ff00ff. Deprecated. See Remarks.
static readonly
GrayColor. Gray, the color that is represented by the RGB value #808080.
static readonly
GreenColor. Green, the color that is represented by the RGB value #008000.
static readonly
LimeColor. Lime, the color that is represented by the RGB value #00ff00.
static readonly
MaroonColor. Maroon, the color that is represented by the RGB value #800000.
static readonly
NavyColor. Navy, the color that is represented by the RGB value #000080.
static readonly
OliveColor. Olive, the color that is represented by the RGB value #808000.
static readonly
PinkColor. Pink, the color that is represented by the RGB value #ff66ff.
static readonly
PurpleColor. Purple, the color that is represented by the RGB value #800080.
static readonly
RedColor. Red, the color that is represented by the RGB value #ff0000.
static readonly
SilverColor. Silver, the color that is represented by the RGB value #c0c0c0.
static readonly
TealColor. Teal, the color that is represented by the RGB value #008080.
static readonly
TransparentColor. The transparent color, represented by the RGB value #00000000.
static readonly
WhiteColor. White, the color that is represented by the RGB value #ffffff.
static readonly
YellowColor. Yellow, the color that is represented by the RGB value #ffff00..

Public Properties

[read-only]
Adouble. Gets the alpha component of the color.
[read-only]
static
AccentColor. Gets the accent or tint color from the application.
[read-only]
Bdouble. Gets the blue component of the color.
[read-only]
static
DefaultColor. Returns the default color.
[read-only]
Gdouble. Gets the Green component of the color.
[read-only]
Huedouble. Gets the Hue of the color.
[read-only]
Luminositydouble. Gets the Luminosity fo the color.
[read-only]
Rdouble. Gets the Red component of the color.
[read-only]
Saturationdouble. Gets the Saturation of the color

Public Methods

AddLuminosity(double) : Color
Returns a new Color with a modified luminosity channel.
override
Equals(object) : bool
Determine if the provided object is equivalent to the current Color.
static
FromHex(string) : Color
Returns a new RGB Color instance with the requested Red, Green, and Blue channels. The Alpha channel is set if hex contains one.
static
FromHsla(double, double, double, double) : Color
Returns a new HSL Color with an alpha channel
static
FromRgb(double, double, double) : Color
Returns a new rgb color instance.
static
FromRgb(int, int, int) : Color
Returns a new rgb color instance.
static
FromRgba(double, double, double, double) : Color
Returns a new RGBA color instance.
static
FromRgba(int, int, int, int) : Color
Returns a new RGBA color instance.
static
FromUint(uint) : Color
Returns a new Color with the requested RGBA value.
override
GetHashCode() : int
Returns the Hashcode for this object.
MultiplyAlpha(double) : Color
Returns a new color with the alpha channel multiplied by alpha, clamped to the inclusive range [0-1].
override
ToString() : string
Returns a string representation of the Color.
WithHue(double) : Color
Returns a color with modified Hue, but keeping the same Saturation and Luminosity.
WithLuminosity(double) : Color
Returns a color with modified Luminosity.
WithSaturation(double) : Color
Returns a new color with modified Saturation.

Public Operators

static
Equality(Color, Color)Returns true if color1 represents the same color as color1.
static
Inequality(Color, Color)Returns true if color1 does not represent the same color as color1.