Struct
RgbaColor

A struct representing a color comprised of Red, Green, Blue and Alpha channels.

Definition

Namespace:Telerik.Windows.Controls.ColorEditor.ColorSchemas

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Rgba")]
public struct RgbaColor

Inherited Members ValueType.ToString()

Constructors

RgbaColor(Color)

Initializes a new instance of the RgbaColor struct.

Declaration

cs-api-definition
public RgbaColor(Color color)

Parameters

color

Color

The color.

RgbaColor(double, double, double, double)

Initializes a new instance of the RgbaColor struct.

Declaration

cs-api-definition
public RgbaColor(double red, double green, double blue, double alpha)

Parameters

red

double

The red channel.

green

double

The green channel.

blue

double

The blue channel.

alpha

double

The alpha channel.

Properties

Alpha

Gets the alpha (opacity) channel of the RgbaColor instance.

Declaration

cs-api-definition
public double Alpha { get; }

Property Value

double

The alpha channel.

Blue

Gets the blue channel of the RgbaColor instance.

Declaration

cs-api-definition
public double Blue { get; }

Property Value

double

The blue channel.

Green

Gets the green channel of the RgbaColor instance.

Declaration

cs-api-definition
public double Green { get; }

Property Value

double

The green channel.

Red

Gets the red channel of the RgbaColor instance.

Declaration

cs-api-definition
public double Red { get; }

Property Value

double

The red channel.

Methods

Equals(RgbaColor)

Compares the two instance.

Declaration

cs-api-definition
public bool Equals(RgbaColor otherInstance)

Parameters

otherInstance

RgbaColor

The other instance.

Returns

bool

Equals(object)

Determines whether the specified object is equal to the current object.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with the current object.

Returns

bool

True if the specified object is equal to the current object; otherwise, false.

Overrides ValueType.Equals(object)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides ValueType.GetHashCode()

Operators

operator !=(RgbaColor, RgbaColor)

Implements the operator !=.

Declaration

cs-api-definition
public static bool operator !=(RgbaColor instance1, RgbaColor instance2)

Parameters

instance1

RgbaColor

The instance1.

instance2

RgbaColor

The instance2.

Returns

bool

The result of the operator.

operator ==(RgbaColor, RgbaColor)

Implements the operator ==.

Declaration

cs-api-definition
public static bool operator ==(RgbaColor instance1, RgbaColor instance2)

Parameters

instance1

RgbaColor

The instance1.

instance2

RgbaColor

The instance2.

Returns

bool

The result of the operator.

Extension Methods