Show / Hide Table of Contents

Class Color

A struct that represents a color

Inheritance
System.Object
Color
Implements
System.IEquatable<Color>
Namespace: Infragistics.Core.Graphics
Assembly: IgniteUI.Blazor.Documents.Core.dll
Syntax
public sealed class Color : ValueType, IEquatable<Color>

Properties

A

Returns the aplha value

Declaration
public byte A { get; }
Property Value
Type Description
System.Byte

B

Returns the blue value

Declaration
public byte B { get; }
Property Value
Type Description
System.Byte

G

Returns the grean value

Declaration
public byte G { get; }
Property Value
Type Description
System.Byte

R

Returns the red value

Declaration
public byte R { get; }
Property Value
Type Description
System.Byte

Methods

Equals(Color)

Determines if another object is equal to this one

Declaration
public bool Equals(Color other)
Parameters
Type Name Description
Color other

The other object

Returns
Type Description
System.Boolean

True if they are the same, otherwise false

Equals(Object)

Deternmines if the passed in object is equsl to this object

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

FromArgb(Byte, Color)

Creates a new instance of Color

Declaration
public static Color FromArgb(byte alpha, Color baseColor)
Parameters
Type Name Description
System.Byte alpha
Color baseColor
Returns
Type Description
Color

FromArgb(Byte, Byte, Byte, Byte)

Creates a new instance of Color

Declaration
public static Color FromArgb(byte a, byte r, byte g, byte b)
Parameters
Type Name Description
System.Byte a
System.Byte r
System.Byte g
System.Byte b
Returns
Type Description
Color

GetHashCode()

Returns a hash code

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

ToArgb()

Rteurns the color as an ARGB value

Declaration
public int ToArgb()
Returns
Type Description
System.Int32

ToString()

Returns a string representation of this object

Declaration
public override string ToString()
Returns
Type Description
System.String

Operators

Equality(Color, Color)

The equality operator

Declaration
public static bool operator ==(Color a, Color b)
Parameters
Type Name Description
Color a
Color b
Returns
Type Description
System.Boolean

Inequality(Color, Color)

The non equality operator

Declaration
public static bool operator !=(Color a, Color b)
Parameters
Type Name Description
Color a
Color b
Returns
Type Description
System.Boolean

Implements

System.IEquatable<>