Color Struct

Summary

An ARGB color.
Namespace
Avalonia.Media
Base Types
  • object
  • ValueType
graph BT Type-->Base0["ValueType"] Base0-->Base1["object"] Type["Color"] class Type type-node

Syntax

public readonly struct Color : ValueType

Constructors

Properties

Name Value Summary
A byte
Gets the Alpha component of the color.
B byte
Gets the Blue component of the color.
G byte
Gets the Green component of the color.
R byte
Gets the Red component of the color.

Methods

Name Value Summary
FromArgb(byte, byte, byte, byte) Color
Creates a Color from alpha, red, green and blue components.
static
FromRgb(byte, byte, byte) Color
Creates a Color from red, green and blue components.
static
FromUInt32(uint) Color
Creates a Color from an integer.
static
Parse(string) Color
Parses a color string.
static
ToString() string
Returns the string representation of the color.
ToUint32() uint
Returns the integer representation of the color.