Skip to content

Class ExcelPicture

Namespace: OfficeOpenXml.Drawing
Assembly: EPPlus.dll

An image object

public sealed class ExcelPicture : ExcelDrawing, IDisposable

Inheritance

object ← XmlHelper ← ExcelDrawing ← ExcelPicture

Implements

IDisposable

Inherited Members

ExcelDrawing.AdjustPositionAndSize()
ExcelDrawing.As
ExcelDrawing.BringToFront()
ExcelDrawing.CellAnchor
ExcelDrawing.ChangeCellAnchor(eEditAs, int, int, int, int)
ExcelDrawing.ChangeCellAnchor(eEditAs)
ExcelDrawing.Copy(ExcelChartStandard, int, int)
ExcelDrawing.Copy(ExcelWorksheet, int, int, int, int)
ExcelDrawing.Description
ExcelDrawing.Dispose()
ExcelDrawing.DrawingType
ExcelDrawing.EditAs
ExcelDrawing.EMU_PER_CM
ExcelDrawing.EMU_PER_MM
ExcelDrawing.EMU_PER_PICA
ExcelDrawing.EMU_PER_PIXEL
ExcelDrawing.EMU_PER_POINT
ExcelDrawing.EMU_PER_US_INCH
ExcelDrawing.From
ExcelDrawing.Group(params ExcelDrawing[])
ExcelDrawing.Hyperlink
ExcelDrawing.Locked
ExcelDrawing.Name
ExcelDrawing.ParentGroup
ExcelDrawing.Position
ExcelDrawing.Print
ExcelDrawing.SendToBack()
ExcelDrawing.SetPosition(int, int, int, int)
ExcelDrawing.SetPosition(int, int)
ExcelDrawing.SetSize(int, int)
ExcelDrawing.SetSize(int)
ExcelDrawing.Size
ExcelDrawing.To
ExcelDrawing.UnGroup(bool)
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object?, object?)
object.ToString()

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