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
DrawingType
The type of drawing
public override eDrawingType DrawingType { get; }
Property Value
Effect
Effects
public ExcelDrawingEffectStyle Effect { get; }
Property Value
Fill
Access to Fill properties
public ExcelDrawingFill Fill { get; }
Property Value
HorizontalFlip
If true, flips the picture horizontal about the center of its bounding box.
public bool HorizontalFlip { get; set; }
Property Value
Image
The image
public ExcelImage Image { get; }
Property Value
LockAspectRatio
Lock aspect ratio
public bool LockAspectRatio { get; set; }
Property Value
PreferRelativeResize
Relative to original picture size
public bool PreferRelativeResize { get; set; }
Property Value
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
VerticalFlip
If true, flips the picture vertical about the center of its bounding box.
public bool VerticalFlip { get; set; }
Property Value
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
intPercent