[]
Specifies which predefined gradient to use when applying a preset gradient to a fill or line.
Use this enum with PresetGradient(GradientStyle, int, PresetGradientType)
or PresetGradient(GradientStyle, int, PresetGradientType) to apply one of
the built-in gradient presets, such as EarlySunset, Horizon, or
Nightfall.
public enum PresetGradientType
Public Enum PresetGradientType
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 120, 80);
shape.Fill.PresetGradient(
GradientStyle.Horizontal,
1,
PresetGradientType.EarlySunset
);
| Name | Description |
|---|---|
| Brass | Specifies the Brass preset gradient for a shape fill. |
| CalmWater | Specifies the Calm Water gradient. |
| Chrome | Specifies the Chrome gradient. |
| ChromeII | Specifies the Chrome II preset gradient. |
| Daybreak | Specifies the Daybreak gradient. |
| Desert | Specifies the Desert preset gradient for a shape fill. |
| EarlySunset | Specifies the Early Sunset preset gradient. |
| Fire | Specifies the Fire gradient. |
| Fog | Specifies the Fog preset gradient. |
| Gold | Specifies the Gold preset gradient. |
| GoldII | Specifies the Gold II gradient. |
| Horizon | Specifies the Horizon preset gradient fill. |
| LateSunset | Specifies the Late Sunset gradient. |
| Mahogany | Specifies the Mahogany preset gradient for a fill or line. |
| Moss | Specifies the Moss gradient. Use this preset gradient when applying a predefined gradient fill to a shape. |
| Nightfall | Specifies the Nightfall gradient. |
| Ocean | Specifies the Ocean gradient. |
| Parchment | Specifies the Parchment preset gradient. |
| Peacock | Specifies the Peacock gradient. |
| Rainbow | Specifies the Rainbow preset gradient. |
| RainbowII | Specifies the Rainbow II preset gradient. |
| Sapphire | Specifies the Sapphire preset gradient for a fill or line. |
| Silver | Specifies the Silver preset gradient. |
| Wheat | Specifies the Wheat preset gradient for a shape fill. |