Skip to main content

XlColor Members

Represents a color used in the spreadsheet document.

Properties

Name Description
Auto static Gets an XlColor object whose XlColor.ColorType value is XlColorType.Auto.
ColorIndex Gets the indexed color value. Only used for backwards compatibility.
ColorType Gets the type of the current color.
DefaultBackground static Returns the XlColor object that represents the default background color with the color index 65.
DefaultForeground static Returns the XlColor object that represents the default foreground color with the color index 64.
Empty static Gets an XlColor object whose XlColor.ColorType value is XlColorType.Empty.
IsAutoOrEmpty Gets a value indicating whether the current color is automatic or empty.
IsEmpty Gets a value indicating whether the current color is empty.
Rgb Gets an ARGB value of the current color.
ThemeColor Gets the theme color based on which the XlColor object is created.
Tint Gets the tint value applied to the theme color.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current XlColor instance.
FromArgb(Byte, Byte, Byte) static Creates the XlColor object from the specified 8-bit color values (red, green, and blue).
FromArgb(Int32) static Creates the XlColor object from a 32-bit ARGB value.
FromTheme(XlThemeColor, Double) static Creates the XlColor object from the theme color using the specified saturation value.
GetHashCode() Gets the hash code (a number) that corresponds to the value of the current XlColor object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Converts the XlColor object to a human-readable string.
See Also