Show / Hide Table of Contents

Class ExcelVmlDrawingGradientFill

Inheritance
System.Object
XmlHelper
ExcelVmlDrawingGradientFill
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.Drawing.Vml
Assembly: EPPlus.dll
Syntax
public class ExcelVmlDrawingGradientFill : XmlHelper

Properties

Angle

Gradient angle

Declaration
public double? Angle { get; set; }
Property Value
Type Description
System.Nullable<System.Double>

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(VmlGradiantColor[])

Declaration
public string ColorsString { get; set; }
Property Value
Type Description
System.String

Focus

Gradient center

Declaration
public double? Focus { get; set; }
Property Value
Type Description
System.Nullable<System.Double>

Method

Gradient method

Declaration
public eVmlGradientMethod Method { get; set; }
Property Value
Type Description
eVmlGradientMethod

Methods

SetGradientColors(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.

Declaration
public void SetGradientColors(params VmlGradiantColor[] colors)
Parameters
Type Name Description
VmlGradiantColor[] colors

The colors with a percent value for the gradient fill

Back to top Generated by DocFX