Class ExcelVmlDrawingGradientFill
- Namespace
- OfficeOpenXml.Drawing.Vml
- Assembly
- EPPlus.dll
Fill settings for a vml gradient fill
public class ExcelVmlDrawingGradientFill : XmlHelper
- Inheritance
-
ExcelVmlDrawingGradientFill
- Inherited Members
Properties
Angle
Gradient angle
public double? Angle { get; set; }
Property Value
ColorsString
A semicolon separated list of colors used for gradient fill. Each color item starts with a percent and a color. Starting from 0% and ending and 100%. Use SetGradientColors(params VmlGradiantColor[]) to set this property.
public string ColorsString { get; set; }
Property Value
Focus
Gradient center
public double? Focus { get; set; }
Property Value
Method
Gradient method
public eVmlGradientMethod Method { get; set; }
Property Value
Methods
SetGradientColors(params VmlGradiantColor[])
Sets the ColorsString with the colors supplied and optionally Color and SecondColor. Each color item starts with a percent and a color. Percent values must be sorted, starting from 0% and ending and 100%. If 0% is omitted, Color is used. If 100% is omitted, SecondColor is used.
public void SetGradientColors(params VmlGradiantColor[] colors)
Parameters
colors
VmlGradiantColor[]The colors with a percent value for the gradient fill