Summary
An ARGB color.
- Namespace
- Avalonia
.Media - Interfaces
-
- IEquatable
<Color>
- IEquatable
- Base Types
-
- object
- ValueType
graph BT
Type-->Base0["ValueType"]
Base0-->Base1["object"]
Type-.->Interface0["IEquatable<Color>"]
Type["Color"]
class Type type-node
Syntax
public readonly struct Color : ValueType, IEquatable<Color>
Constructors
Name | Summary |
---|---|
Color |
Properties
Methods
Name | Value | Summary |
---|---|---|
Equals |
bool |
Check if two colors are equal.
|
Equals |
bool | |
FromArgb |
Color |
Creates a
Color from alpha, red, green and blue components.
static
|
FromRgb |
Color |
Creates a
Color from red, green and blue components.
static
|
FromUInt32 |
Color |
Creates a
Color from an integer.
static
|
GetHashCode |
int | |
Parse |
Color |
Parses a color string.
static
|
Parse |
Color |
Parses a color string.
static
|
ToString |
string |
Returns the string representation of the color.
|
ToUint32 |
uint |
Returns the integer representation of the color.
|
TryParse |
bool |
Parses a color string.
static
|
TryParse |
bool |
Parses a color string.
static
|
Operators
Name | Value | Summary |
---|---|---|
operator != |
bool | |
operator == |
bool |