Color Struct

public readonly struct Color : IEquatable<Color>

No documentation is available.

Implements

Properties

NameDescription
Alpha
Black
Blue
Green
Red
Transparent
White
public byte Alpha { get; }

Property value

byte

No documentation is available.

public static Color Black { get; }

Property value

Color

No documentation is available.

public byte Blue { get; }

Property value

byte

No documentation is available.

public byte Green { get; }

Property value

byte

No documentation is available.

public byte Red { get; }

Property value

byte

No documentation is available.

Transparent

Color.cs
public static Color Transparent { get; }

Property value

Color

No documentation is available.

public static Color White { get; }

Property value

Color

No documentation is available.

Methods

NameDescription
Equals(Color)
Equals(object?)
FromArgb(byte, byte, byte, byte)
FromArgb(int, int, int, int)
FromArgb(uint)
FromRgb(byte, byte, byte)
FromRgb(int, int, int)
GetHashCode()
Parse(string)
ToArgb()
ToCssString()
ToString()
TryParse(string?, Color)
WithAlpha(byte)

Equals overloads

Equals(Color)

Color.cs
public bool Equals(Color other)
Parameters
other Color
Returns

bool

No documentation is available.

Equals(object?)

Color.cs
public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

FromArgb overloads

FromArgb(byte, byte, byte, byte)

Color.cs
public static Color FromArgb(byte alpha, byte red, byte green, byte blue)
Parameters
alpha byte
red byte
green byte
blue byte
Returns

Color

No documentation is available.

FromArgb(int, int, int, int)

Color.cs
public static Color FromArgb(int alpha, int red, int green, int blue)
Parameters
alpha int
red int
green int
blue int
Returns

Color

No documentation is available.

FromArgb(uint)

Color.cs
public static Color FromArgb(uint argb)
Parameters
argb uint
Returns

Color

No documentation is available.

FromRgb overloads

FromRgb(byte, byte, byte)

Color.cs
public static Color FromRgb(byte red, byte green, byte blue)
Parameters
red byte
green byte
blue byte
Returns

Color

No documentation is available.

FromRgb(int, int, int)

Color.cs
public static Color FromRgb(int red, int green, int blue)
Parameters
red int
green int
blue int
Returns

Color

No documentation is available.

GetHashCode()

Color.cs
public override int GetHashCode()

Returns

int

No documentation is available.

Parse(string)

Color.cs
public static Color Parse(string value)

Parameters

value string

Returns

Color

No documentation is available.

ToArgb()

Color.cs
public uint ToArgb()

Returns

uint

No documentation is available.

ToCssString()

Color.cs
public string ToCssString()

Returns

string

No documentation is available.

ToString()

Color.cs
public override string ToString()

Returns

string

No documentation is available.

TryParse(string?, Color)

Color.cs
public static bool TryParse(string? value, out Color color)

Parameters

value string?
color Color

Returns

bool

No documentation is available.

WithAlpha(byte)

Color.cs
public Color WithAlpha(byte alpha)

Parameters

alpha byte

Returns

Color

No documentation is available.

Operators

NameDescription
operator ==(Color, Color)
operator !=(Color, Color)

operator ==(Color, Color)

Color.cs
public static bool operator ==(Color left, Color right)

Parameters

left Color
right Color

Returns

bool

No documentation is available.

operator !=(Color, Color)

Color.cs
public static bool operator !=(Color left, Color right)

Parameters

left Color
right Color

Returns

bool

No documentation is available.