Skip to content

Class VmlGradiantColor

Namespace: OfficeOpenXml.Drawing.Vml
Assembly: EPPlus.dll

A color used in a vml gradient list

public class VmlGradiantColor

Inheritance

object ← VmlGradiantColor

Inherited Members

object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()

Constructors

VmlGradiantColor(double, Color)

Initialize a new in instance of VmlGradiantColor

public VmlGradiantColor(double percent, Color color)

Parameters

percent double

color Color

Exceptions

ArgumentOutOfRangeException

If the percent is not between 0 and 100

ArgumentNullException

If color is Color.Empty

Properties

Color

The color to use.

public Color Color { get; set; }

Property Value

Color

Percent

Percent position to insert the color. Range from 0-100

public double Percent { get; set; }

Property Value

double