Show / Hide Table of Contents

Class CellFill

Represents a base class for a cell fill.

Inheritance
System.Object
CellFill
FormattableCellFill
FormattingCellFill
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class CellFill : IEquatable<CellFill>

Constructors

CellFill()

Declaration
public CellFill()

CellFill(CellFill)

Declaration
public CellFill(CellFill fill)
Parameters
Type Name Description
CellFill fill

Properties

BackgroundColor

Declaration
public Color BackgroundColor { get; set; }
Property Value
Type Description
Color

BackgroundSpreadsheetColor

Declaration
public virtual SpreadsheetColor BackgroundSpreadsheetColor { get; set; }
Property Value
Type Description
SpreadsheetColor

Gradient

Declaration
public virtual GradientCellFill Gradient { get; set; }
Property Value
Type Description
GradientCellFill

PatternColor

Declaration
public virtual Color PatternColor { get; set; }
Property Value
Type Description
Color

PatternSpreadsheetColor

Declaration
public virtual SpreadsheetColor PatternSpreadsheetColor { get; set; }
Property Value
Type Description
SpreadsheetColor

Type

Declaration
public virtual PatternType Type { get; set; }
Property Value
Type Description
PatternType

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
Type Description
CellFill

CreateGradient(GradientType, Double, SpreadsheetColor[])

Declaration
public static CellFill CreateGradient(GradientType gradientType, double degree, params SpreadsheetColor[] stopColors)
Parameters
Type Name Description
GradientType gradientType
System.Double degree
SpreadsheetColor[] stopColors
Returns
Type Description
CellFill

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
Type Description
CellFill

CreatePattern(SpreadsheetColor, SpreadsheetColor, PatternType)

Declaration
public static CellFill CreatePattern(SpreadsheetColor backgroundColor, SpreadsheetColor patternColor, PatternType patternType)
Parameters
Type Name Description
SpreadsheetColor backgroundColor
SpreadsheetColor patternColor
PatternType patternType
Returns
Type Description
CellFill

CreatePattern(SpreadsheetColor, PatternType)

Declaration
public static CellFill CreatePattern(SpreadsheetColor patternColor, PatternType patternType)
Parameters
Type Name Description
SpreadsheetColor patternColor
PatternType patternType
Returns
Type Description
CellFill

CreateSolidFill(SpreadsheetColor)

Declaration
public static CellFill CreateSolidFill(SpreadsheetColor color)
Parameters
Type Name Description
SpreadsheetColor color
Returns
Type Description
CellFill

Equals(CellFill)

Declaration
public virtual bool Equals(CellFill fill)
Parameters
Type Name Description
CellFill fill
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
Back to top Generated by DocFX