Table of Contents

Class ExcelDrawingFillBasic

Namespace
OfficeOpenXml.Drawing
Assembly
EPPlus.dll

Fill properties for drawing objects like lines etc, that don't have blip- and pattern- fills

public class ExcelDrawingFillBasic : XmlHelper, IDisposable
Inheritance
ExcelDrawingFillBasic
Implements
Derived
Inherited Members

Fields

_drawing

The drawings collection

protected ExcelDrawing _drawing

Field Value

ExcelDrawing

_fillNode

The fill xml element

protected XmlNode _fillNode

Field Value

XmlNode

_fillPath

XPath

protected string _fillPath

Field Value

string

_fillTypeNode

The fill type node.

protected XmlNode _fillTypeNode

Field Value

XmlNode

Properties

Color

Fill color for solid fills. Other fill styles will return Color.Empty. Setting this propery will set the Type to SolidFill with the specified color.

public Color Color { get; set; }

Property Value

Color

GradientFill

Reference gradient fill properties This property is only accessable when Type is set to GradientFill

public ExcelDrawingGradientFill GradientFill { get; }

Property Value

ExcelDrawingGradientFill

SolidFill

Reference solid fill properties This property is only accessable when Type is set to SolidFill

public ExcelDrawingSolidFill SolidFill { get; }

Property Value

ExcelDrawingSolidFill

Style

Fill style

public eFillStyle Style { get; set; }

Property Value

eFillStyle

Transparancy

Transparancy in percent from a solid fill. This is the same as 100-Fill.Transform.Alpha

public int Transparancy { get; set; }

Property Value

int

Methods

Dispose()

Disposes the object

public void Dispose()

LoadFill()

Loads the fill from xml

protected virtual void LoadFill()