Click or drag to resize

OColor Class

This object used to store, convert colors.
Inheritance Hierarchy
System Object
Spire.Xls OColor

Namespace: Spire.Xls
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public class OColor : IDisposable

The OColor type exposes the following members.

Constructors
Name Description
Public method OColor
Initializes a new instance of the OColor class.
Public method OColor(Color)
Initializes a new instance of the OColor class with the specified RGB color.
Top
Properties
Name Description
Public property ColorType
Returns type of the stored color.
Public property Tint
Gets or sets Tint.
Public property Value
Returns color value (it can be index, rgb color, etc.)
Top
Methods
Name Description
Public method Dispose
Releases all resources used by the Object .
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Overrides Object Equals(Object) .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GetHashCode
Returns the hash code for this instance.
(Overrides Object GetHashCode .)
Public method GetKnownColor
Retrieves the known color from the workbook.
Public method GetThemeColor
Gets theme color.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Public method SetKnownColor
Sets known color.
Public method SetRGB
Sets rgb color.
Public method SetTheme(Int32, IWorkbook)
Sets theme color.
Public method SetTheme(Int32, IWorkbook, Double)
Sets theme color
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
See Also