[]
Creates the path gradient fill.
public static GradientFillEffect Create(double top, double left, double bottom, double right, Color color1, Color color2)
Public Shared Function Create(top As Double, left As Double, bottom As Double, right As Double, color1 As Color, color2 As Color) As GradientFillEffect
Type | Name | Description |
---|---|---|
double | top | Specifies in percentage format (from the top to the bottom) the position of the top edge of the inner rectangle (color 1). For top, 0 means the top edge of the inner rectangle is on the top edge of the cell, and 1 means it is on the bottom edge of the cell. |
double | left | Specifies in percentage format (from the left to the right) the position of the left edge of the inner rectangle (color 1). For left, 0 means the left edge of the inner rectangle is on the left edge of the cell, and 1 means it is on the right edge of the cell. |
double | bottom | Specifies in percentage format (from the top to the bottom) the position of the bottom edge of the inner rectangle (color 1). For bottom, 0 means the bottom edge of the inner rectangle is on the top edge of the cell, and 1 means it is on the bottom edge of the cell. |
double | right | Specifies in percentage format (from the left to the right) the position of the right edge of the inner rectangle (color 1). For right, 0 means the right edge of the inner rectangle is on the left edge of the cell, and 1 means it is on the right edge of the cell. |
Color | color1 | A Color value indicates the color of the first gradient stop, constituting this gradient fill effect. |
Color | color2 | A Color value indicates the color of the second gradient stop, constituting this gradient fill effect. |
Type | Description |
---|---|
GradientFillEffect | A GradientFillEffect value represents the gradient fill effect. |
Creates the path gradient fill.
public static GradientFillEffect Create(double top, double left, double bottom, double right, GradientStop[] gradientStops)
Public Shared Function Create(top As Double, left As Double, bottom As Double, right As Double, gradientStops As GradientStop()) As GradientFillEffect
Type | Name | Description |
---|---|---|
double | top | |
double | left | |
double | bottom | |
double | right | |
GradientStop[] | gradientStops | A GradientStop array indicates the gradient stops. |
Type | Description |
---|---|
GradientFillEffect | A GradientFillEffect value represents the gradient fill effect. |
Creates the path gradient fill.
public static GradientFillEffect Create(double degree, GradientStop[] gradientStops)
Public Shared Function Create(degree As Double, gradientStops As GradientStop()) As GradientFillEffect
Type | Name | Description |
---|---|---|
double | degree | Specifies in percentage format (from the top to the bottom) the position of the top edge of the inner rectangle (color 1). For top, 0 means the top edge of the inner rectangle is on the top edge of the cell, and 1 means it is on the bottom edge of the cell. |
GradientStop[] | gradientStops | A GradientStop array indicates the gradient stops. |
Type | Description |
---|---|
GradientFillEffect | A GradientFillEffect value represents the gradient fill effect. |
Creates the linear gradient fill.
public static GradientFillEffect Create(double degree, Color color1, Color color2)
Public Shared Function Create(degree As Double, color1 As Color, color2 As Color) As GradientFillEffect
Type | Name | Description |
---|---|---|
double | degree | A double value indicates the angle of the linear gradient. |
Color | color1 | A Color value indicates the color of the first gradient stop, constituting this gradient fill effect. |
Color | color2 | A Color value indicates the color of the second gradient stop, constituting this gradient fill effect. |
Type | Description |
---|---|
GradientFillEffect | A GradientFillEffect value represents the gradient fill effect. |