Class SpreadsheetColor
Inheritance
System.Object
SpreadsheetColor
Assembly: DRIT.Spreadsheet.dll
Syntax
public class SpreadsheetColor : object
Constructors
SpreadsheetColor(DrawingColor)
Declaration
public SpreadsheetColor(DrawingColor DrawingColor)
Parameters
SpreadsheetColor(SpreadsheetColor)
Declaration
public SpreadsheetColor(SpreadsheetColor other)
Parameters
SpreadsheetColor(Color)
Declaration
public SpreadsheetColor(Color color)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
color |
|
SpreadsheetColor(Int32)
Declaration
public SpreadsheetColor(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
SpreadsheetColor(String)
Declaration
public SpreadsheetColor(string hexColor)
Parameters
Type |
Name |
Description |
System.String |
hexColor |
|
Properties
Accent1
Declaration
public static SpreadsheetColor Accent1 { get; }
Property Value
Accent2
Declaration
public static SpreadsheetColor Accent2 { get; }
Property Value
Accent3
Declaration
public static SpreadsheetColor Accent3 { get; }
Property Value
Accent4
Declaration
public static SpreadsheetColor Accent4 { get; }
Property Value
Accent5
Declaration
public static SpreadsheetColor Accent5 { get; }
Property Value
Accent6
Declaration
public static SpreadsheetColor Accent6 { get; }
Property Value
Automatic
Declaration
public static SpreadsheetColor Automatic { get; }
Property Value
Background1
Declaration
public static SpreadsheetColor Background1 { get; }
Property Value
Background2
Declaration
public static SpreadsheetColor Background2 { get; }
Property Value
Black
Declaration
public static SpreadsheetColor Black { get; }
Property Value
Blue
Declaration
public static SpreadsheetColor Blue { get; }
Property Value
FollowedHyperlink
Declaration
public static SpreadsheetColor FollowedHyperlink { get; }
Property Value
Green
Declaration
public static SpreadsheetColor Green { get; }
Property Value
HexColor
Declaration
public string HexColor { get; }
Property Value
Type |
Description |
System.String |
|
Hyperlink
Declaration
public static SpreadsheetColor Hyperlink { get; }
Property Value
Index
Declaration
public int? Index { get; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
Red
Declaration
public static SpreadsheetColor Red { get; }
Property Value
Rgb
Declaration
public ARgb? Rgb { get; }
Property Value
Type |
Description |
System.Nullable<ARgb> |
|
Text1
Declaration
public static SpreadsheetColor Text1 { get; }
Property Value
Text2
Declaration
public static SpreadsheetColor Text2 { get; }
Property Value
Tint
Declaration
public decimal Tint { get; set; }
Property Value
Type |
Description |
System.Decimal |
|
Type
Declaration
public SpreadsheetColorType Type { get; set; }
Property Value
White
Declaration
public static SpreadsheetColor White { get; }
Property Value
Yellow
Declaration
public static SpreadsheetColor Yellow { get; }
Property Value
Methods
ColorDistance(SpreadsheetColor, SpreadsheetColor)
Declaration
public static double ColorDistance(SpreadsheetColor value, SpreadsheetColor color)
Parameters
Returns
Type |
Description |
System.Double |
|
Darken(Decimal)
Declaration
public SpreadsheetColor Darken(decimal value)
Parameters
Type |
Name |
Description |
System.Decimal |
value |
|
Returns
Equals(SpreadsheetColor)
Declaration
protected bool Equals(SpreadsheetColor other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
FromArgb(Byte, Byte, Byte, Byte)
Declaration
public static SpreadsheetColor FromArgb(byte a, byte r, byte g, byte b)
Parameters
Type |
Name |
Description |
System.Byte |
a |
|
System.Byte |
r |
|
System.Byte |
g |
|
System.Byte |
b |
|
Returns
FromHex(String)
Declaration
public static SpreadsheetColor FromHex(string hexColor)
Parameters
Type |
Name |
Description |
System.String |
hexColor |
|
Returns
FromRgb(Byte, Byte, Byte)
Declaration
public static SpreadsheetColor FromRgb(byte r, byte g, byte b)
Parameters
Type |
Name |
Description |
System.Byte |
r |
|
System.Byte |
g |
|
System.Byte |
b |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Indexed(Int32)
Declaration
public static SpreadsheetColor Indexed(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Lighten(Decimal)
Declaration
public SpreadsheetColor Lighten(decimal value)
Parameters
Type |
Name |
Description |
System.Decimal |
value |
|
Returns
ToArgb()
Declaration
Returns
Type |
Description |
System.Int32 |
|
ToColor()
Declaration
Returns
Type |
Description |
System.Drawing.Color |
|
ToColor(Workbook)
Declaration
public Color ToColor(Workbook workbook)
Parameters
Returns
Type |
Description |
System.Drawing.Color |
|
ToHex()
Declaration
Returns
Type |
Description |
System.String |
|
ToHexWithAlpha()
Declaration
public string ToHexWithAlpha()
Returns
Type |
Description |
System.String |
|
ToHexWithAlpha(Workbook)
Declaration
public string ToHexWithAlpha(Workbook workbook)
Parameters
Returns
Type |
Description |
System.String |
|
ToHexWithAlpha(Color)
Declaration
public static string ToHexWithAlpha(Color color)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
color |
|
Returns
Type |
Description |
System.String |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|