Table of Contents

Class ExcelPicture

Namespace
OfficeOpenXml.Drawing
Assembly
EPPlus.dll

An image object

public sealed class ExcelPicture : ExcelDrawing, IDisposable
Inheritance
ExcelPicture
Implements
Inherited Members

Properties

Border

Access to Fill properties

public ExcelDrawingBorder Border { get; }

Property Value

ExcelDrawingBorder

DrawingType

The type of drawing

public override eDrawingType DrawingType { get; }

Property Value

eDrawingType

Effect

Effects

public ExcelDrawingEffectStyle Effect { get; }

Property Value

ExcelDrawingEffectStyle

Fill

Access to Fill properties

public ExcelDrawingFill Fill { get; }

Property Value

ExcelDrawingFill

HorizontalFlip

If true, flips the picture horizontal about the center of its bounding box.

public bool HorizontalFlip { get; set; }

Property Value

bool

Image

The image

public ExcelImage Image { get; }

Property Value

ExcelImage

LockAspectRatio

Lock aspect ratio

public bool LockAspectRatio { get; set; }

Property Value

bool

PreferRelativeResize

Relative to original picture size

public bool PreferRelativeResize { get; set; }

Property Value

bool

Rotation

Rotation angle in degrees. Positive angles are clockwise. Negative angles are counter-clockwise. Note that EPPlus will not size the image depending on the rotation, so some angles will reqire the From and To coordinates to be set accordingly.

public double Rotation { get; set; }

Property Value

double

VerticalFlip

If true, flips the picture vertical about the center of its bounding box.

public bool VerticalFlip { get; set; }

Property Value

bool

Methods

Dispose()

Dispose the object

public override void Dispose()

SetSize(int)

Set the size of the image in percent from the orginal size Note that resizing columns / rows after using this function will effect the size of the picture

public override void SetSize(int Percent)

Parameters

Percent int

Percent