New to Telerik Document ProcessingStart a free 30-day trial

Immutable ARGB color value used in cell formatting and theming.

Definition

Namespace:Telerik.Documents.SpreadsheetStreaming

Assembly:Telerik.Documents.SpreadsheetStreaming.dll

Syntax:

C#
public class SpreadColor

Inheritance: objectSpreadColor

Constructors

Initializes a new instance of the SpreadColor class.

C#
public SpreadColor(byte r, byte g, byte b)
Parameters:rbyte

The red component value.

gbyte

The green component value.

bbyte

The blue component value.

Properties

Blue color component (0–255).

C#
public byte B { get; }
Property Value:

The blue component value.

Green color component (0–255).

C#
public byte G { get; }
Property Value:

The green component value.

Red color component (0–255).

C#
public byte R { get; }
Property Value:

The red component value.

Methods

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

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

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

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()