Color Estrutura

Definição

Descreve uma cor em termos de canais alfa, vermelho, verde e azul.Describes a color in terms of alpha, red, green, and blue channels.

public value class Color : IFormattable
public struct Color : IFormattable
[System.Security.SecurityCritical]
public struct Color : IFormattable
type Color = struct
    interface IFormattable
[<System.Security.SecurityCritical>]
type Color = struct
    interface IFormattable
Public Structure Color
Implements IFormattable
Herança
Atributos
Implementações

Comentários

Essa estrutura representa a projeção .NET da estrutura Windows Runtime (WinRT) Color .This struct represents the .NET projection of the Windows Runtime (WinRT) Color struct. Para obter mais informações, consulte Color na referência da API UWP.For more information, see Color in the UWP API reference.

Propriedades

A

Obtém ou define o valor de canal alfa sRGB da cor.Gets or sets the sRGB alpha channel value of the color.

B

Obtém ou define o valor de canal azul sRGB da cor.Gets or sets the sRGB blue channel value of the color.

G

Obtém ou define o valor de canal verde sRGB da cor.Gets or sets the sRGB green channel value of the color.

R

Obtém ou define o valor de canal vermelho sRGB da cor.Gets or sets the sRGB red channel value of the color.

Métodos

Equals(Color)

Testa se o struct Color especificada é idêntico à cor atual.Tests whether the specified Color struct is identical to the current color.

Equals(Object)

Testa se o objeto especificado é um struct Color e é equivalente à cor atual.Tests whether the specified object is a Color struct and is equivalent to the current color.

FromArgb(Byte, Byte, Byte, Byte)

Cria um struct Color usando os valores de canal de cor e de canal alfa sRGB especificados.Creates a new Color struct by using the specified sRGB alpha channel and color channel values.

GetHashCode()

Obtém um código hash para o struct Color atual.Gets a hash code for the current Color struct.

ToString()

Cria uma representação de cadeia de caracteres da cor usando os canais ARGB em notação hexadecimal.Creates a string representation of the color using the ARGB channels in hex notation.

ToString(IFormatProvider)

Cria uma representação de cadeia de caracteres da cor usando os canais ARGB e o provedor de formato especificado.Creates a string representation of the color by using the ARGB channels and the specified format provider.

Operadores

Equality(Color, Color)

Testa se dois structs Color são idênticos.Tests whether two Color structs are identical.

Inequality(Color, Color)

Testa se dois structs Color não são idênticos.Tests whether two Color structs are not identical.

Implantações explícitas de interface

IFormattable.ToString(String, IFormatProvider)

Para obter uma descrição desse membro, confira ToString(String, IFormatProvider).For a description of this member, see ToString(String, IFormatProvider).

Aplica-se a