An immutable object which represents a rectangular gradient fill for a cell.
Inheritance
Constructors
Section titled "Constructors"constructor
public CellFillRectangularGradient(double left, double top, double right, double bottom, params CellFillGradientStop[] stops) Returns CellFillRectangularGradient
Properties
Section titled "Properties"Stops
Section titled "Stops"Inherited from: CellFillGradient
Gets the read-only collection of gradient stops which describe the color transitions and their positions within the gradient.
public IList<CellFillGradientStop> Stops { get; } NoColor
Section titled "NoColor"Inherited from: CellFill
Gets the default cell fill, which is no background color.
public static CellFill NoColor { get; } Bottom
Section titled "Bottom"Gets the bottom edge of the inner rectangle of the gradient, ranging from 0.0 (the top of the cell) to 1.0 (the bottom of the cell).
public double Bottom { get; } Gets the left edge of the inner rectangle of the gradient, ranging from 0.0 (the left of the cell) to 1.0 (the right of the cell).
public double Left { get; } Right
Section titled "Right"Gets the right edge of the inner rectangle of the gradient, ranging from 0.0 (the left of the cell) to 1.0 (the right of the cell).
public double Right { get; } Gets the top edge of the inner rectangle of the gradient, ranging from 0.0 (the top of the cell) to 1.0 (the bottom of the cell).
public double Top { get; } Methods
Section titled "Methods"CreateLinearGradientFill(double, Color, Color)
Section titled "CreateLinearGradientFill(double, Color, Color)"Inherited from: CellFill
Creates a linear gradient that can be applied to a cell's fill.
public static CellFillLinearGradient CreateLinearGradientFill(double angle, Color color1, Color color2) Parameters
- angle:
double - color1:
Color - color2:
Color
Returns any
CreateLinearGradientFill(double, WorkbookColorInfo, WorkbookColorInfo)
Section titled "CreateLinearGradientFill(double, WorkbookColorInfo, WorkbookColorInfo)"Inherited from: CellFill
Creates a linear gradient that can be applied to a cell's fill.
public static CellFillLinearGradient CreateLinearGradientFill(double angle, WorkbookColorInfo colorInfo1, WorkbookColorInfo colorInfo2) Parameters
- angle:
double - colorInfo1:
WorkbookColorInfo - colorInfo2:
WorkbookColorInfo
Returns any
CreateLinearGradientFill(double, params CellFillGradientStop[])
Section titled "CreateLinearGradientFill(double, params CellFillGradientStop[])"Inherited from: CellFill
Creates a linear gradient that can be applied to a cell's fill.
public static CellFillLinearGradient CreateLinearGradientFill(double angle, params CellFillGradientStop[] stops) Parameters
- angle:
double - stops:
CellFillGradientStop[]
Returns any
CreatePatternFill(Color, Color, FillPatternStyle)
Section titled "CreatePatternFill(Color, Color, FillPatternStyle)"Inherited from: CellFill
Creates a solid color or pattern fill that can be applied to a cell.
public static CellFillPattern CreatePatternFill(Color backgroundColor, Color patternColor, FillPatternStyle patternStyle) Parameters
- backgroundColor:
Color - patternColor:
Color - patternStyle:
FillPatternStyle
Returns any
CreatePatternFill(WorkbookColorInfo, WorkbookColorInfo, FillPatternStyle)
Section titled "CreatePatternFill(WorkbookColorInfo, WorkbookColorInfo, FillPatternStyle)"Inherited from: CellFill
Creates a solid color or pattern fill that can be applied to a cell.
public static CellFillPattern CreatePatternFill(WorkbookColorInfo backgroundColorInfo, WorkbookColorInfo patternColorInfo, FillPatternStyle patternStyle) Parameters
- backgroundColorInfo:
WorkbookColorInfo - patternColorInfo:
WorkbookColorInfo - patternStyle:
FillPatternStyle
Returns any
CreateRectangularGradientFill(Color, Color)
Section titled "CreateRectangularGradientFill(Color, Color)"Inherited from: CellFill
Creates a rectangular gradient that can be applied to a cell's fill.
public static CellFillRectangularGradient CreateRectangularGradientFill(Color color1, Color color2) Parameters
- color1:
Color - color2:
Color
Returns any
CreateRectangularGradientFill(double, double, double, double, Color, Color)
Section titled "CreateRectangularGradientFill(double, double, double, double, Color, Color)"Inherited from: CellFill
Creates a rectangular gradient that can be applied to a cell's fill.
public static CellFillRectangularGradient CreateRectangularGradientFill(double left, double top, double right, double bottom, Color color1, Color color2) Parameters
- left:
double - top:
double - right:
double - bottom:
double - color1:
Color - color2:
Color
Returns any
CreateRectangularGradientFill(WorkbookColorInfo, WorkbookColorInfo)
Section titled "CreateRectangularGradientFill(WorkbookColorInfo, WorkbookColorInfo)"Inherited from: CellFill
Creates a rectangular gradient that can be applied to a cell's fill.
public static CellFillRectangularGradient CreateRectangularGradientFill(WorkbookColorInfo colorInfo1, WorkbookColorInfo colorInfo2) Parameters
- colorInfo1:
WorkbookColorInfo - colorInfo2:
WorkbookColorInfo
Returns any
CreateRectangularGradientFill(double, double, double, double, WorkbookColorInfo, WorkbookColorInfo)
Section titled "CreateRectangularGradientFill(double, double, double, double, WorkbookColorInfo, WorkbookColorInfo)"Inherited from: CellFill
Creates a rectangular gradient that can be applied to a cell's fill.
public static CellFillRectangularGradient CreateRectangularGradientFill(double left, double top, double right, double bottom, WorkbookColorInfo colorInfo1, WorkbookColorInfo colorInfo2) Parameters
- left:
double - top:
double - right:
double - bottom:
double - colorInfo1:
WorkbookColorInfo - colorInfo2:
WorkbookColorInfo
Returns any
CreateRectangularGradientFill(double, double, double, double, params CellFillGradientStop[])
Section titled "CreateRectangularGradientFill(double, double, double, double, params CellFillGradientStop[])"Inherited from: CellFill
Creates a rectangular gradient that can be applied to a cell's fill.
public static CellFillRectangularGradient CreateRectangularGradientFill(double left, double top, double right, double bottom, params CellFillGradientStop[] stops) Parameters
- left:
double - top:
double - right:
double - bottom:
double - stops:
CellFillGradientStop[]
Returns any
CreateSolidFill(Color)
Section titled "CreateSolidFill(Color)"Inherited from: CellFill
Creates a solid color fill that can be applied to a cell.
public static CellFillPattern CreateSolidFill(Color solidColor) Parameters
- solidColor:
Color
Returns any
CreateSolidFill(WorkbookColorInfo)
Section titled "CreateSolidFill(WorkbookColorInfo)"Inherited from: CellFill
Creates a solid color fill that can be applied to a cell.
public static CellFillPattern CreateSolidFill(WorkbookColorInfo solidColorInfo) Parameters
- solidColorInfo:
WorkbookColorInfo
Returns any
Equals(object)
Section titled "Equals(object)"Determines whether the is equal to the specified object.
public override bool Equals(object obj) Parameters
- obj:
object
Returns any
GetHashCode()
Section titled "GetHashCode()"Gets the hash code for the .
public override int GetHashCode()