Interface IGradient
Interface used to get gradient fill effects.
Namespace: Syncfusion.XlsIO.Interfaces
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public interface IGradient
Properties
BackColor
Represents background color.
Declaration
Color BackColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
BackColorIndex
Represents background color index.
Declaration
ExcelKnownColors BackColorIndex { get; set; }
Property Value
Type | Description |
---|---|
ExcelKnownColors |
BackColorObject
Represents background color object.
Declaration
ColorObject BackColorObject { get; }
Property Value
Type | Description |
---|---|
ColorObject |
ForeColor
Represents foreground color.
Declaration
Color ForeColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
ForeColorIndex
Represents foreground color index.
Declaration
ExcelKnownColors ForeColorIndex { get; set; }
Property Value
Type | Description |
---|---|
ExcelKnownColors |
ForeColorObject
Represents foreground color object.
Declaration
ColorObject ForeColorObject { get; }
Property Value
Type | Description |
---|---|
ColorObject |
GradientStyle
Represents gradient shading style.
Declaration
ExcelGradientStyle GradientStyle { get; set; }
Property Value
Type | Description |
---|---|
ExcelGradientStyle |
GradientVariant
Represents gradient shading variant.
Declaration
ExcelGradientVariants GradientVariant { get; set; }
Property Value
Type | Description |
---|---|
ExcelGradientVariants |
Methods
CompareTo(IGradient)
Compares with gradient.
Declaration
int CompareTo(IGradient gradient)
Parameters
Type | Name | Description |
---|---|---|
IGradient | gradient | Gradient to compare with. |
Returns
Type | Description |
---|---|
System.Int32 | Zero if gradients are equal. |
TwoColorGradient()
Sets the specified fill to a two-color gradient.
Declaration
void TwoColorGradient()
TwoColorGradient(ExcelGradientStyle, ExcelGradientVariants)
Sets the specified fill style with fill to a two-color gradient.
Declaration
void TwoColorGradient(ExcelGradientStyle style, ExcelGradientVariants variant)
Parameters
Type | Name | Description |
---|---|---|
ExcelGradientStyle | style | Represents shading shading style. |
ExcelGradientVariants | variant | Represents shading variant. |