Interface IGradient
Represents gradient fill format.
Namespace: Syncfusion.OfficeChart
Assembly: Syncfusion.OfficeChart.Base.dll
Syntax
public interface IGradient
Properties
BackColor
Gets or sets the background color for the gradient fill using System.Drawing.Color.
Declaration
Color BackColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Color |
BackColorIndex
Gets or sets a index value that represents a background color for the gradient fill.
Declaration
OfficeKnownColors BackColorIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| OfficeKnownColors |
BackColorObject
Gets or sets a ChartColor object that represents background color of the gradient fill.
Declaration
ChartColor BackColorObject { get; }
Property Value
| Type | Description |
|---|---|
| ChartColor |
ForeColor
Gets or sets the foreground color for the gradient fill using System.Drawing.Color.
Declaration
Color ForeColor { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Color |
ForeColorIndex
Gets or sets a index value that represents a foreground color for the gradient fill.
Declaration
OfficeKnownColors ForeColorIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| OfficeKnownColors |
ForeColorObject
Gets or sets a ChartColor object that represents foreground color for the gradient fill.
Declaration
ChartColor ForeColorObject { get; }
Property Value
| Type | Description |
|---|---|
| ChartColor |
GradientStyle
Gets or sets the gradient shading style type for the gradient fill.
Declaration
OfficeGradientStyle GradientStyle { get; set; }
Property Value
| Type | Description |
|---|---|
| OfficeGradientStyle |
GradientVariant
Gets or sets the gradient shading variant type for the gradient fill.
Declaration
OfficeGradientVariants GradientVariant { get; set; }
Property Value
| Type | Description |
|---|---|
| OfficeGradientVariants |
Methods
CompareTo(IGradient)
Compares the gradient instances to determine the equality.
Declaration
int CompareTo(IGradient gradient)
Parameters
| Type | Name | Description |
|---|---|---|
| IGradient | gradient | Gradient to compare with. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Returns Zero if gradients are equal. |
TwoColorGradient()
Sets the specified fill to a two-color gradient.
Declaration
void TwoColorGradient()
TwoColorGradient(OfficeGradientStyle, OfficeGradientVariants)
Sets the specified style to a two-color gradient.
Declaration
void TwoColorGradient(OfficeGradientStyle style, OfficeGradientVariants variant)
Parameters
| Type | Name | Description |
|---|---|---|
| OfficeGradientStyle | style | Represents shading style. |
| OfficeGradientVariants | variant | Represents shading variant. |