Click or drag to resize

SpreadsheetColor Structure

Represents a spreadsheet color.

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1132
Syntax
public struct SpreadsheetColor : IEquatable<SpreadsheetColor>

The SpreadsheetColor type exposes the following members.

Properties
  NameDescription
Public propertyB
Gets the blue component value of this SpreadsheetColor structure.
Public propertyG
Gets the green component value of this SpreadsheetColor structure.
Public propertyIsEmpty
Specifies whether this SpreadsheetColor structure is uninitialized.
Public propertyR
Gets the red component value of this SpreadsheetColor structure.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified Object is equal to this SpreadsheetColor instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(SpreadsheetColor)
Determines whether the other SpreadsheetColor is equal to this SpreadsheetColor instance.
Public methodStatic memberFromArgb(Int32)
Creates a SpreadsheetColor structure from a 32-bit ARGB value.
Public methodStatic memberFromArgb(Int32, Int32, Int32)
Creates a SpreadsheetColor structure from the specified 8-bit color values (red, green, and blue). The alpha value is implicitly 255 (fully opaque). Although this method allows a 32-bit value to be passed for each color component, the value of each component is limited to 8 bits.
Public methodStatic memberFromName
Creates a SpreadsheetColor structure from the specified predefined color.
Public methodGetHashCode
Returns a hash code for this SpreadsheetColor instance.
(Overrides ValueTypeGetHashCode.)
Public methodToArgb
Gets the 32-bit ARGB value of this SpreadsheetColor structure.
Public methodToString
Returns a String that represents this SpreadsheetColor instance.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether first and second SpreadsheetColors are equal.
Public operatorStatic member(Color to SpreadsheetColor)
Performs an implicit conversion from Color to SpreadsheetColor.
Public operatorStatic member(SpreadsheetColor to Color)
Performs an implicit conversion from SpreadsheetColor to Color.
Public operatorStatic memberInequality
Determines whether first and second SpreadsheetColors are not equal.
Top
Remarks

Spreadsheet color can either be empty / none, automatic, theme, standard or custom.

Empty, automatic, theme and standard colors can be created using the factory method FromName(ColorName) which accepts ColorName parameter.

System.Drawing.Color nor any other, technology-specific, color type wasn't deliberately used, because GemBox.Spreadsheet public interface is exposed only through GemBox.Spreadsheet and .NET BCL (base class library) types.

To maintain backward compatibility SpreadsheetColor implements implicit conversion operators to and from System.Drawing.Color.

See Also