Color Estructura

Definición

Clase que representa un color y lo expone como valores RGBA y HSL.Class that represents a color and exposes it as RGBA and HSL values.

[System.Diagnostics.DebuggerDisplay("R={R}, G={G}, B={B}, A={A}, Hue={Hue}, Saturation={Saturation}, Luminosity={Luminosity}")]
[Xamarin.Forms.TypeConverter(typeof(Xamarin.Forms.ColorTypeConverter))]
public struct Color
type Color = struct
Herencia
Color
Atributos

Comentarios

Este tipo es inmutable.This type is immutable. Los colores se pueden expresar en los modos RGB o HSL.Colors can be expressed in the RGB or HSL modes. Mientras que el constructor Color(Double, Double, Double) toma los valores R, G, B y A, la clase Color también calcula y hace que los datos HSL estén disponibles para el color.While the Color(Double, Double, Double) constructor takes R, G, B, and A values, the Color class also calculates and makes available HSL data for the color.

En XAML, los desarrolladores de aplicaciones pueden especificar cualquier propiedad de tipo Color, por ejemplo, TextColor como un atributo XAML o como una etiqueta anidada.In XAML, application developers can specify any property that is of type Color, for example, TextColor either as a XAML attribute or as a nested tag. En el ejemplo de código siguiente se muestra cómo especificar el color del texto de una etiqueta mediante un atributo:The following code example shows how to specify the text color for a label by using an attribute:


<Label VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand" TextColor="Green">
    <Label.Text>Hello, World!</Label.Text>
</Label>

En el ejemplo siguiente se muestra cómo especificar el color del texto de una etiqueta mediante una etiqueta anidada:The example below shows how to specify the text color for a label by using a nested tag:


<Label VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand">
    <Label.Text>Hello, World!</Label.Text>
    <Label.TextColor>Color.Blue</Label.TextColor>
</Label>

Los desarrolladores de aplicaciones pueden especificar colores en XAML como un número hexadecimal o como un nombre de color válido.Application developers can specify colors in XAML either as a hexadecimal number or as a valid color name.

Al especificar un color con un número hexadecimal, los desarrolladores de aplicaciones pueden usar 3, 4 o 6 dígitos.When specifying a color with a hexadecimal number, app developers can use 3, 4, or 6 digits. Si el desarrollador especifica 3 dígitos, se interpretan como datos de RGB dobles para un color totalmente opaco.If the developer specifies 3 digits, they are interpreted as RGB doublet data for a fully opaque color. Por ejemplo, "#123" especifica el color que representa "#FF112233".For example, "#123" specifies the color that is represented by "#FF112233". Si el desarrollador proporciona un número hexadecimal de 4 dígitos, los datos se interpretan como anteriores, excepto en que el primer dígito especifica el canal alfa.If the developer provides a 4-digit hexadecimal number, then the data are interpreted as above, except that the first digit specifies the alpha channel. Por ejemplo, "#1234" especifica el color que representa "#11223344".For example, "#1234" specifies the color that is represented by "#11223344". Por último, si el desarrollador proporciona un número hexadecimal de 6 dígitos, los datos se interpretan como un color totalmente opaco con esos valores RGB.Finally, if the developer provides a 6 digit hexadecimal number, the data are interpreted as a fully opaque color with those RGB values. Por ejemplo, "#112233" especifica el color que representa "#FF112233".For example, "#112233" specifies the color that is represented by "#FF112233".

Al especificar un color con una cadena, los desarrolladores de aplicaciones pueden usar el nombre del color de forma aislada o un prefijo "Color.".When specifying a color with a string, app developers can use color name in isolation, or prefix it with "Color.". Por ejemplo, Purple y color. Purple son formas válidas de especificar el color púrpura.For example, both Purple and Color.Purple are valid ways to specify the color purple.

Constructores

Color(Double)

Inicializa un nuevo color gris.Initialize a new gray color.

Color(Double, Double, Double)

Inicializa un nuevo color RGB.Initializes a new RGB color.

Color(Double, Double, Double, Double)

Inicializa un nuevo color RGB con un canal alfa.Initializes a new RGB color with an alpha channel.

Campos

AliceBlue

Blanco azulado, color representado por el valor RGB #FFF0F8FF.AliceBlue, the color that is represented by the RGB value #FFF0F8FF.

AntiqueWhite

Blanco antiguo, color representado por el valor RGB #FFFAEBD7.AntiqueWhite, the color that is represented by the RGB value #FFFAEBD7.

Aqua

Aguamarina, color representado por el valor RGB #00ffff.Aqua, the color that is represented by the RGB value #00ffff.

Aquamarine

Aguamarina, color representado por el valor RGB #FF7FFFD4.Aquamarine, the color that is represented by the RGB value #FF7FFFD4.

Azure

Celeste, color representado por el valor RGB #FFF0FFFF.Azure, the color that is represented by the RGB value #FFF0FFFF.

Beige

Beige, color representado por el valor RGB #FFF5F5DC.Beige, the color that is represented by the RGB value #FFF5F5DC.

Bisque

Miel, color representado por el valor RGB #FFFFE4C4.Bisque, the color that is represented by the RGB value #FFFFE4C4.

Black

Negro, color representado por el valor RGB #000000.Black, the color that is represented by the RGB value #000000.

BlanchedAlmond

Almendra pálido, color representado por el valor RGB #FFFFEBCD.BlanchedAlmond, the color that is represented by the RGB value #FFFFEBCD.

Blue

Azul, color representado por el valor RGB #0000ff.Blue, the color that is represented by the RGB value #0000ff.

BlueViolet

Azul violáceo, color representado por el valor RGB #FF8A2BE2.BlueViolet, the color that is represented by the RGB value #FF8A2BE2.

Brown

Marrón, color representado por el valor RGB #FFA52A2A.Brown, the color that is represented by the RGB value #FFA52A2A.

BurlyWood

Madera, color representado por el valor RGB #FFDEB887.BurlyWood, the color that is represented by the RGB value #FFDEB887.

CadetBlue

Azul cadete, color representado por el valor RGB #FF5F9EA0.CadetBlue, the color that is represented by the RGB value #FF5F9EA0.

Chartreuse

Verde pálido, color representado por el valor RGB #FF7FFF00.Chartreuse, the color that is represented by the RGB value #FF7FFF00.

Chocolate

Chocolate, color representado por el valor RGB #FFD2691E.Chocolate, the color that is represented by the RGB value #FFD2691E.

Coral

Coral, color representado por el valor RGB #FFFF7F50.Coral, the color that is represented by the RGB value #FFFF7F50.

CornflowerBlue

Azul aciano, color representado por el valor RGB #FF6495ED.CornflowerBlue, the color that is represented by the RGB value #FF6495ED.

Cornsilk

Crudo, color representado por el valor RGB #FFFFF8DC.Cornsilk, the color that is represented by the RGB value #FFFFF8DC.

Crimson

Carmesí, color representado por el valor RGB #FFDC143C.Crimson, the color that is represented by the RGB value #FFDC143C.

Cyan

Cian, color representado por el valor RGB #FF00FFFF.Cyan, the color that is represented by the RGB value #FF00FFFF.

DarkBlue

Azul oscuro, color representado por el valor RGB #FF00008B.DarkBlue, the color that is represented by the RGB value #FF00008B.

DarkCyan

Cian oscuro, color representado por el valor RGB #FF008B8B.DarkCyan, the color that is represented by the RGB value #FF008B8B.

DarkGoldenrod

Ocre oscuro, color representado por el valor RGB #FFB8860B.DarkGoldenrod, the color that is represented by the RGB value #FFB8860B.

DarkGray

Gris oscuro, color representado por el valor RGB #FFA9A9A9.DarkGray, the color that is represented by the RGB value #FFA9A9A9.

DarkGreen

Verde oscuro, color representado por el valor RGB #FF006400.DarkGreen, the color that is represented by the RGB value #FF006400.

DarkKhaki

Caqui oscuro, color representado por el valor RGB #FFBDB76B.DarkKhaki, the color that is represented by the RGB value #FFBDB76B.

DarkMagenta

Magenta oscuro, color representado por el valor RGB #FF8B008B.DarkMagenta, the color that is represented by the RGB value #FF8B008B.

DarkOliveGreen

Verde oliva oscuro, color representado por el valor RGB #FF556B2F.DarkOliveGreen, the color that is represented by the RGB value #FF556B2F.

DarkOrange

Naranja oscuro, color representado por el valor RGB #FFFF8C00.DarkOrange, the color that is represented by the RGB value #FFFF8C00.

DarkOrchid

Orquídea oscuro, color representado por el valor RGB #FF9932CC.DarkOrchid, the color that is represented by the RGB value #FF9932CC.

DarkRed

Rojo oscuro, color representado por el valor RGB #FF8B0000.DarkRed, the color that is represented by the RGB value #FF8B0000.

DarkSalmon

Salmón oscuro, color representado por el valor RGB #FFE9967A.DarkSalmon, the color that is represented by the RGB value #FFE9967A.

DarkSeaGreen

Verde marino oscuro, color representado por el valor RGB #FF8FBC8F.DarkSeaGreen, the color that is represented by the RGB value #FF8FBC8F.

DarkSlateBlue

Azul pizarra oscuro, color representado por el valor RGB #FF483D8B.DarkSlateBlue, the color that is represented by the RGB value #FF483D8B.

DarkSlateGray

Gris pizarra oscuro, color representado por el valor RGB #FF2F4F4F.DarkSlateGray, the color that is represented by the RGB value #FF2F4F4F.

DarkTurquoise

Turquesa oscuro, color representado por el valor RGB #FF00CED1.DarkTurquoise, the color that is represented by the RGB value #FF00CED1.

DarkViolet

Violeta oscuro, color representado por el valor RGB #FF9400D3.DarkViolet, the color that is represented by the RGB value #FF9400D3.

DeepPink

Rosa fuerte, color representado por el valor RGB #FFFF1493.DeepPink, the color that is represented by the RGB value #FFFF1493.

DeepSkyBlue

Azul cielo fuerte, color representado por el valor RGB #FF00BFFF.DeepSkyBlue, the color that is represented by the RGB value #FF00BFFF.

DimGray

Gris marengo, color representado por el valor RGB #FF696969.DimGray, the color that is represented by the RGB value #FF696969.

DodgerBlue

Azul fuerte, color representado por el valor RGB #FF1E90FF.DodgerBlue, the color that is represented by the RGB value #FF1E90FF.

Firebrick

Teja, color representado por el valor RGB #FFB22222.Firebrick, the color that is represented by the RGB value #FFB22222.

FloralWhite

Blanco manteca, color representado por el valor RGB #FFFFFAF0.FloralWhite, the color that is represented by the RGB value #FFFFFAF0.

ForestGreen

Verde pino, color representado por el valor RGB #FF228B22.ForestGreen, the color that is represented by the RGB value #FF228B22.

Fuchsia

Fucsia, color representado por el valor RGB #ff00ff.Fucshia, the color that is represented by the RGB value #ff00ff.

Fuschia

Fucsia, color representado por el valor RGB #ff00ff.Fucshia, the color that is represented by the RGB value #ff00ff. Desusado.Deprecated. Vea la sección Comentarios.See Remarks.

Gainsboro

Azul gainsboro, color representado por el valor RGB #FFDCDCDC.Gainsboro, the color that is represented by the RGB value #FFDCDCDC.

GhostWhite

Blanco ligero, color representado por el valor RGB #FFF8F8FF.GhostWhite, the color that is represented by the RGB value #FFF8F8FF.

Gold

Dorado, color representado por el valor RGB #FFFFD700.Gold, the color that is represented by the RGB value #FFFFD700.

Goldenrod

Ocre, color representado por el valor RGB #FFDAA520.Goldenrod, the color that is represented by the RGB value #FFDAA520.

Gray

Gris, color representado por el valor RGB #808080.Gray, the color that is represented by the RGB value #808080.

Green

Verde, color representado por el valor RGB #008000.Green, the color that is represented by the RGB value #008000.

GreenYellow

Amarillo verdoso, color representado por el valor RGB #FFADFF2F.GreenYellow, the color that is represented by the RGB value #FFADFF2F.

Honeydew

Flor de rocío, color representado por el valor RGB #FFF0FFF0.Honeydew, the color that is represented by the RGB value #FFF0FFF0.

HotPink

Rosa oscuro, color representado por el valor RGB #FFFF69B4.HotPink, the color that is represented by the RGB value #FFFF69B4.

IndianRed

Rojo indio, color representado por el valor RGB #FFCD5C5C.IndianRed, the color that is represented by the RGB value #FFCD5C5C.

Indigo

Añil, color representado por el valor RGB #FF4B0082.Indigo, the color that is represented by the RGB value #FF4B0082.

Ivory

Marfil, color representado por el valor RGB #FFFFFFF0.Ivory, the color that is represented by the RGB value #FFFFFFF0.

Khaki

Caqui, color representado por el valor RGB #FFF0E68C.Khaki, the color that is represented by the RGB value #FFF0E68C.

Lavender

Lavanda, color representado por el valor RGB #FFE6E6FA.Lavender, the color that is represented by the RGB value #FFE6E6FA.

LavenderBlush

Lavanda rosácea, color representado por el valor RGB #FFFFF0F5.LavenderBlush, the color that is represented by the RGB value #FFFFF0F5.

LawnGreen

Verde césped, color representado por el valor RGB #FF7CFC00.LawnGreen, the color that is represented by the RGB value #FF7CFC00.

LemonChiffon

Amarillo pastel, color representado por el valor RGB #FFFFFACD.LemonChiffon, the color that is represented by the RGB value #FFFFFACD.

LightBlue

Azul claro, color representado por el valor RGB #FFADD8E6.LightBlue, the color that is represented by the RGB value #FFADD8E6.

LightCoral

Coral claro, color representado por el valor RGB #FFF08080.LightCoral, the color that is represented by the RGB value #FFF08080.

LightCyan

Cian claro, color representado por el valor RGB #FFE0FFFF.LightCyan, the color that is represented by the RGB value #FFE0FFFF.

LightGoldenrodYellow

Ocre claro, color representado por el valor RGB #FFFAFAD2.LightGoldenrodYellow, the color that is represented by the RGB value #FFFAFAD2.

LightGray

Gris claro, color representado por el valor RGB #FFD3D3D3.LightGray, the color that is represented by the RGB value #FFD3D3D3.

LightGreen

Verde claro, color representado por el valor RGB #FF90EE90.LightGreen, the color that is represented by the RGB value #FF90EE90.

LightPink

Rosa claro, color representado por el valor RGB #FFFFB6C1.LightPink, the color that is represented by the RGB value #FFFFB6C1.

LightSalmon

Salmón claro, color representado por el valor RGB #FFFFA07A.LightSalmon, the color that is represented by the RGB value #FFFFA07A.

LightSeaGreen

Verde mar claro, color representado por el valor RGB #FF20B2AA.LightSeaGreen, the color that is represented by the RGB value #FF20B2AA.

LightSkyBlue

Azul cielo claro, color representado por el valor RGB #FF87CEFA.LightSkyBlue, the color that is represented by the RGB value #FF87CEFA.

LightSlateGray

Gris pizarra claro, color representado por el valor RGB #FF778899.LightSlateGray, the color that is represented by the RGB value #FF778899.

LightSteelBlue

Azul acero claro, color representado por el valor RGB #FFB0C4DE.LightSteelBlue, the color that is represented by the RGB value #FFB0C4DE.

LightYellow

Amarillo claro, color representado por el valor RGB #FFFFFFE0.LightYellow, the color that is represented by the RGB value #FFFFFFE0.

Lime

Lima, color representado por el valor RGB #00ff00.Lime, the color that is represented by the RGB value #00ff00.

LimeGreen

Verde lima, color representado por el valor RGB #FF32CD32.LimeGreen, the color that is represented by the RGB value #FF32CD32.

Linen

Blanco arena, color representado por el valor RGB #FFFAF0E6.Linen, the color that is represented by the RGB value #FFFAF0E6.

Magenta

Magenta, color representado por el valor RGB #FFFF00FF.Magenta, the color that is represented by the RGB value #FFFF00FF.

Maroon

Granate, color representado por el valor RGB #800000.Maroon, the color that is represented by the RGB value #800000.

MediumAquamarine

Aguamarina intermedio, color representado por el valor RGB #FF66CDAA.MediumAquamarine, the color that is represented by the RGB value #FF66CDAA.

MediumBlue

Azul intermedio, color representado por el valor RGB #FF0000CD.MediumBlue, the color that is represented by the RGB value #FF0000CD.

MediumOrchid

Orquídea intermedio, color representado por el valor RGB #FFBA55D3.MediumOrchid, the color that is represented by the RGB value #FFBA55D3.

MediumPurple

Púrpura intermedio, color representado por el valor RGB #FF9370DB.MediumPurple, the color that is represented by the RGB value #FF9370DB.

MediumSeaGreen

Verde mar intermedio, color representado por el valor RGB #FF3CB371.MediumSeaGreen, the color that is represented by the RGB value #FF3CB371.

MediumSlateBlue

Azul pizarra intermedio, color representado por el valor RGB #FF7B68EE.MediumSlateBlue, the color that is represented by the RGB value #FF7B68EE.

MediumSpringGreen

Verde fuerte intermedio, color representado por el valor RGB #FF00FA9A.MediumSpringGreen, the color that is represented by the RGB value #FF00FA9A.

MediumTurquoise

Turquesa intermedio, color representado por el valor RGB #FF48D1CC.MediumTurquoise, the color that is represented by the RGB value #FF48D1CC.

MediumVioletRed

Rojo violáceo intermedio, color representado por el valor RGB #FFC71585.MediumVioletRed, the color that is represented by the RGB value #FFC71585.

MidnightBlue

Azul medianoche, color representado por el valor RGB #FF191970.MidnightBlue, the color that is represented by the RGB value #FF191970.

MintCream

Crema menta, color representado por el valor RGB #FFF5FFFA.MintCream, the color that is represented by the RGB value #FFF5FFFA.

MistyRose

Rosa difuminado, color representado por el valor RGB #FFFFE4E1.MistyRose, the color that is represented by the RGB value #FFFFE4E1.

Moccasin

Arena, color representado por el valor RGB #FFFFE4B5.Moccasin, the color that is represented by the RGB value #FFFFE4B5.

NavajoWhite

Blanco navajo, color representado por el valor RGB #FFFFDEAD.NavajoWhite, the color that is represented by the RGB value #FFFFDEAD.

Navy

Azul marino, color representado por el valor RGB #000080.Navy, the color that is represented by the RGB value #000080.

OldLace

Encaje antiguo, color representado por el valor RGB #FFFDF5E6.OldLace, the color that is represented by the RGB value #FFFDF5E6.

Olive

Verde oliva, color representado por el valor RGB #808000.Olive, the color that is represented by the RGB value #808000.

OliveDrab

Verde oliva pardusco, color representado por el valor RGB #FF6B8E23.OliveDrab, the color that is represented by the RGB value #FF6B8E23.

Orange

Naranja, color representado por el valor RGB #ffa500.Orange, the color that is represented by the RGB value #ffa500.

OrangeRed

Rojo anaranjado, color representado por el valor RGB #FFFF4500.OrangeRed, the color that is represented by the RGB value #FFFF4500.

Orchid

Orquídea, color representado por el valor RGB #FFDA70D6.Orchid, the color that is represented by the RGB value #FFDA70D6.

PaleGoldenrod

Ocre pálido, color representado por el valor RGB #FFEEE8AA.PaleGoldenrod, the color that is represented by the RGB value #FFEEE8AA.

PaleGreen

Verde pálido, color representado por el valor RGB #FF98FB98.PaleGreen, the color that is represented by the RGB value #FF98FB98.

PaleTurquoise

Turquesa pálido, color representado por el valor RGB #FFAFEEEE.PaleTurquoise, the color that is represented by the RGB value #FFAFEEEE.

PaleVioletRed

Rojo violáceo pálido, color representado por el valor RGB #FFDB7093.PaleVioletRed, the color that is represented by the RGB value #FFDB7093.

PapayaWhip

Papaya claro, color representado por el valor RGB #FFFFEFD5.PapayaWhip, the color that is represented by the RGB value #FFFFEFD5.

PeachPuff

Melocotón, color representado por el valor RGB #FFFFDAB9.PeachPuff, the color that is represented by the RGB value #FFFFDAB9.

Peru

Pardo, color representado por el valor RGB #FFCD853F.Peru, the color that is represented by the RGB value #FFCD853F.

Pink

Rosa, color representado por el valor RGB #ff66ff.Pink, the color that is represented by the RGB value #ff66ff.

Plum

Ciruela, color representado por el valor RGB #FFDDA0DD.Plum, the color that is represented by the RGB value #FFDDA0DD.

PowderBlue

Azul suave, color representado por el valor RGB #FFB0E0E6.PowderBlue, the color that is represented by the RGB value #FFB0E0E6.

Purple

Púrpura, color representado por el valor RGB #800080.Purple, the color that is represented by the RGB value #800080.

Red

Rojo, color representado por el valor RGB #ff0000.Red, the color that is represented by the RGB value #ff0000.

RosyBrown

Marrón rosáceo, color representado por el valor RGB #FFBC8F8F.RosyBrown, the color that is represented by the RGB value #FFBC8F8F.

RoyalBlue

Azul real, color representado por el valor RGB #FF4169E1.RoyalBlue, the color that is represented by the RGB value #FF4169E1.

SaddleBrown

Cuero, color representado por el valor RGB #FF8B4513.SaddleBrown, the color that is represented by the RGB value #FF8B4513.

Salmon

Salmón, color representado por el valor RGB #FFFA8072.Salmon, the color that is represented by the RGB value #FFFA8072.

SandyBrown

Marrón arcilla, color representado por el valor RGB #FFF4A460.SandyBrown, the color that is represented by the RGB value #FFF4A460.

SeaGreen

Verde mar, color representado por el valor RGB #FF2E8B57.SeaGreen, the color that is represented by the RGB value #FF2E8B57.

SeaShell

Nácar, color representado por el valor RGB #FFFFF5EE.SeaShell, the color that is represented by the RGB value #FFFFF5EE.

Sienna

Siena, color representado por el valor RGB #FFA0522D.Sienna, the color that is represented by the RGB value #FFA0522D.

Silver

Plata, color representado por el valor RGB #c0c0c0.Silver, the color that is represented by the RGB value #c0c0c0.

SkyBlue

Azul cielo, color representado por el valor RGB #FF87CEEB.SkyBlue, the color that is represented by the RGB value #FF87CEEB.

SlateBlue

Azul pizarra, color representado por el valor RGB #FF6A5ACD.SlateBlue, the color that is represented by the RGB value #FF6A5ACD.

SlateGray

Gris pizarra, color representado por el valor RGB #FF708090.SlateGray, the color that is represented by the RGB value #FF708090.

Snow

Nieve, color representado por el valor RGB #FFFFFAFA.Snow, the color that is represented by the RGB value #FFFFFAFA.

SpringGreen

Verde fuerte, color representado por el valor RGB #FF00FF7F.SpringGreen, the color that is represented by the RGB value #FF00FF7F.

SteelBlue

Azul acero, color representado por el valor RGB #FF4682B4.SteelBlue, the color that is represented by the RGB value #FF4682B4.

Tan

Canela, color representado por el valor RGB #FFD2B48C.Tan, the color that is represented by the RGB value #FFD2B48C.

Teal

Verde azulado, color representado por el valor RGB #008080.Teal, the color that is represented by the RGB value #008080.

Thistle

Cardo, color representado por el valor RGB #FFD8BFD8.Thistle, the color that is represented by the RGB value #FFD8BFD8.

Tomato

Rojo tomate, color representado por el valor RGB #FFFF6347.Tomato, the color that is represented by the RGB value #FFFF6347.

Transparent

Color transparente, representado por el valor RGB #ffffff00.The transparent color, represented by the RGB value #ffffff00.

Turquoise

Turquesa, color representado por el valor RGB #FF40E0D0.Turquoise, the color that is represented by the RGB value #FF40E0D0.

Violet

Violeta, color representado por el valor RGB #FFEE82EE.Violet, the color that is represented by the RGB value #FFEE82EE.

Wheat

Trigo, color representado por el valor RGB #FFF5DEB3.Wheat, the color that is represented by the RGB value #FFF5DEB3.

White

Blanco, color representado por el valor RGB #ffffff.White, the color that is represented by the RGB value #ffffff.

WhiteSmoke

Blanco ahumado, color representado por el valor RGB #FFF5F5F5.WhiteSmoke, the color that is represented by the RGB value #FFF5F5F5.

Yellow

Amarillo, color representado por el valor RGB #ffff00.Yellow, the color that is represented by the RGB value #ffff00.

YellowGreen

Verde amarillento, color representado por el valor RGB #FF9ACD32.YellowGreen, the color that is represented by the RGB value #FF9ACD32.

Propiedades

A

Obtiene el componente alfa del color.Gets the alpha component of the color.

Accent

Obtiene el énfasis o tono del color de la aplicación.Gets the accent or tint color from the application.

B

Obtiene el componente azul del color.Gets the blue component of the color.

Default

Devuelve el color predeterminado.Returns the default color.

G

Obtiene el componente verde del color.Gets the Green component of the color.

Hue

Obtiene el matiz del color.Gets the Hue of the color.

IsDefault

Para uso interno de la plataforma de Xamarin.Forms.For internal use by the Xamarin.Forms platform.

Luminosity

Obtiene la luminosidad del color.Gets the Luminosity fo the color.

R

Obtiene el componente rojo del color.Gets the Red component of the color.

Saturation

Obtiene la saturación del color.Gets the Saturation of the color

Métodos

AddLuminosity(Double)

Devuelve un color nuevo con un canal de luminosidad modificado.Returns a new Color with a modified luminosity channel.

Equals(Object)

Determina si el Object proporcionado equivale al color actual.Determine if the provided Object is equivalent to the current Color.

FromHex(String)

Devuelve una nueva instancia de color RGB con los canales de rojo, verde y azul solicitados.Returns a new RGB Color instance with the requested Red, Green, and Blue channels. El canal alfa se establece si hex contiene uno.The Alpha channel is set if hex contains one.

FromHsla(Double, Double, Double, Double)

Devuelve un nuevo color HSL con un canal alfa.Returns a new HSL Color with an alpha channel

FromRgb(Double, Double, Double)

Devuelve una nueva instancia de color RGB.Returns a new rgb color instance.

FromRgb(Int32, Int32, Int32)

Devuelve una nueva instancia de color RGB.Returns a new rgb color instance.

FromRgba(Double, Double, Double, Double)

Devuelve una nueva instancia de color RGBA.Returns a new RGBA color instance.

FromRgba(Int32, Int32, Int32, Int32)

Devuelve una nueva instancia de color RGBA.Returns a new RGBA color instance.

FromUint(UInt32)

Devuelve un nuevo color con el valor RGBA solicitado.Returns a new Color with the requested RGBA value.

GetHashCode()

Devuelve el código hash de este Object.Returns the Hashcode for this Object.

MultiplyAlpha(Double)

Devuelve un nuevo color con el canal alfa multiplicado por alfa, restringido al intervalo inclusivo [0-1].Returns a new color with the alpha channel multiplied by alpha, clamped to the inclusive range [0-1].

SetAccent(Color)

Para uso interno de la plataforma de Xamarin.Forms.For internal use by the Xamarin.Forms platform.

ToString()

Devuelve una representación de cadena del color.Returns a string representation of the Color.

WithHue(Double)

Devuelve un color con el matiz modificado, pero conservando la misma saturación y la misma luminosidad.Returns a color with modified Hue, but keeping the same Saturation and Luminosity.

WithLuminosity(Double)

Devuelve un color con la luminosidad modificada.Returns a color with modified Luminosity.

WithSaturation(Double)

Devuelve un color con la saturación modificada.Returns a new color with modified Saturation.

Operadores

Equality(Color, Color)

Devuelve true si color1 representa el mismo color que color1.Returns true if color1 represents the same color as color1.

Implicit(Color to Color)

Convierte el color proporcionado en un Color.Converts the provided color to a Color.

Implicit(Color to Color)

Convierte el color proporcionado en un Color.Converts the provided color to a Color.

Inequality(Color, Color)

Devuelve true si color1 no representa el mismo color que color1.Returns true if color1 does not represent the same color as color1.

Se aplica a