Class CellFill
Represents a base class for a cell fill.
Inheritance
System.Object
CellFill
Assembly: DRIT.Spreadsheet.dll
Syntax
public class CellFill : IEquatable<CellFill>
Constructors
CellFill()
Declaration
CellFill(CellFill)
Declaration
public CellFill(CellFill fill)
Parameters
Properties
BackgroundColor
Declaration
public Color BackgroundColor { get; set; }
Property Value
BackgroundSpreadsheetColor
Declaration
public virtual SpreadsheetColor BackgroundSpreadsheetColor { get; set; }
Property Value
Gradient
Declaration
public virtual GradientCellFill Gradient { get; set; }
Property Value
PatternColor
Declaration
public virtual Color PatternColor { get; set; }
Property Value
PatternSpreadsheetColor
Declaration
public virtual SpreadsheetColor PatternSpreadsheetColor { get; set; }
Property Value
Type
Declaration
public virtual PatternType Type { get; set; }
Property Value
Methods
CreateGradient(GradientType, Double, Color[])
Declaration
public static CellFill CreateGradient(GradientType gradientType, double degree, params Color[] stopColors)
Parameters
Type |
Name |
Description |
GradientType |
gradientType |
|
System.Double |
degree |
|
Color[] |
stopColors |
|
Returns
CreateGradient(GradientType, Double, SpreadsheetColor[])
Declaration
public static CellFill CreateGradient(GradientType gradientType, double degree, params SpreadsheetColor[] stopColors)
Parameters
Returns
CreatePattern(Color, Color, PatternType)
Declaration
public static CellFill CreatePattern(Color backgroundColor, Color patternColor, PatternType patternType)
Parameters
Type |
Name |
Description |
Color |
backgroundColor |
|
Color |
patternColor |
|
PatternType |
patternType |
|
Returns
CreatePattern(SpreadsheetColor, SpreadsheetColor, PatternType)
Declaration
public static CellFill CreatePattern(SpreadsheetColor backgroundColor, SpreadsheetColor patternColor, PatternType patternType)
Parameters
Returns
CreatePattern(SpreadsheetColor, PatternType)
Declaration
public static CellFill CreatePattern(SpreadsheetColor patternColor, PatternType patternType)
Parameters
Returns
CreateSolidFill(SpreadsheetColor)
Declaration
public static CellFill CreateSolidFill(SpreadsheetColor color)
Parameters
Returns
Equals(CellFill)
Declaration
public virtual bool Equals(CellFill fill)
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 |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|