Show / Hide Table of Contents

Class ExcelPicture

An image object

Inheritance
System.Object
XmlHelper
ExcelDrawing
ExcelPicture
Implements
System.IDisposable
Inherited Members
ExcelDrawing.EMU_PER_PIXEL
ExcelDrawing.EMU_PER_POINT
ExcelDrawing.EMU_PER_CM
ExcelDrawing.EMU_PER_MM
ExcelDrawing.EMU_PER_US_INCH
ExcelDrawing.EMU_PER_PICA
ExcelDrawing._doNotAdjust
ExcelDrawing.Name
ExcelDrawing.Description
ExcelDrawing.EditAs
ExcelDrawing.Locked
ExcelDrawing.Print
ExcelDrawing.From
ExcelDrawing.Position
ExcelDrawing.Size
ExcelDrawing.To
ExcelDrawing.Hyperlink
ExcelDrawing.As
ExcelDrawing.SetPosition(Int32, Int32)
ExcelDrawing.CellAnchor
ExcelDrawing.ChangeCellAnchor(eEditAs, Int32, Int32, Int32, Int32)
ExcelDrawing.ChangeCellAnchor(eEditAs)
ExcelDrawing.SetPosition(Int32, Int32, Int32, Int32)
ExcelDrawing.SetSize(Int32, Int32)
ExcelDrawing.SendToBack()
ExcelDrawing.BringToFront()
ExcelDrawing.Group(ExcelDrawing[])
ExcelDrawing.UnGroup(Boolean)
ExcelDrawing.ParentGroup
ExcelDrawing.AdjustPositionAndSize()
ExcelDrawing.CreateShapeNode()
ExcelDrawing.CreateClientData()
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
Assembly: EPPlus.dll
Syntax
public sealed class ExcelPicture : ExcelDrawing, IDisposable, IPictureContainer

Properties

Border

Access to Fill properties

Declaration
public ExcelDrawingBorder Border { get; }
Property Value
Type Description
ExcelDrawingBorder

DrawingType

The type of drawing

Declaration
public override eDrawingType DrawingType { get; }
Property Value
Type Description
eDrawingType
Overrides
ExcelDrawing.DrawingType

Effect

Effects

Declaration
public ExcelDrawingEffectStyle Effect { get; }
Property Value
Type Description
ExcelDrawingEffectStyle

Fill

Access to Fill properties

Declaration
public ExcelDrawingFill Fill { get; }
Property Value
Type Description
ExcelDrawingFill

Image

The Image

Declaration
public Image Image { get; set; }
Property Value
Type Description
System.Drawing.Image

ImageFormat

Image format If the picture is created from an Image this type is always Jpeg

Declaration
public ImageFormat ImageFormat { get; }
Property Value
Type Description
System.Drawing.Imaging.ImageFormat

LockAspectRatio

Lock aspect ratio

Declaration
public bool LockAspectRatio { get; set; }
Property Value
Type Description
System.Boolean

PreferRelativeResize

Relative to original picture size

Declaration
public bool PreferRelativeResize { get; set; }
Property Value
Type Description
System.Boolean

Methods

Dispose()

Dispose the object

Declaration
public override void Dispose()
Overrides
ExcelDrawing.Dispose()

SetSize(Int32)

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

Declaration
public override void SetSize(int Percent)
Parameters
Type Name Description
System.Int32 Percent

Percent

Overrides
ExcelDrawing.SetSize(Int32)

Implements

System.IDisposable
Back to top Generated by DocFX