Interface IXLPicture
public interface IXLPicture : IDisposable
- Inherited Members
- Extension Methods
Properties
BottomRightCell
IXLCell BottomRightCell { get; }
Property Value
Format
Type of image. The supported formats are defined by OpenXML's ImagePartType. Default value is "jpeg"
XLPictureFormat Format { get; }
Property Value
Height
Current height of the picture in pixels.
int Height { get; set; }
Property Value
Id
int Id { get; }
Property Value
ImageStream
MemoryStream ImageStream { get; }
Property Value
Left
int Left { get; set; }
Property Value
Name
string Name { get; set; }
Property Value
OriginalHeight
Original height of the picture in pixels.
int OriginalHeight { get; }
Property Value
OriginalWidth
Original width of the picture in pixels.
int OriginalWidth { get; }
Property Value
Placement
XLPicturePlacement Placement { get; set; }
Property Value
Sheet
IXLSheet Sheet { get; }
Property Value
Top
int Top { get; set; }
Property Value
TopLeftCell
IXLCell TopLeftCell { get; }
Property Value
Width
Current width of the picture in pixels.
int Width { get; set; }
Property Value
Worksheet
IXLWorksheet Worksheet { get; }
Property Value
Methods
CopyTo(IXLSheet)
Create a copy of the picture on a different sheet.
IXLPicture CopyTo(IXLSheet targetSheet)
Parameters
targetSheetIXLSheetThe sheet to which the picture will be copied.
Returns
- IXLPicture
A created copy of the picture.
CopyTo(IXLWorksheet)
Create a copy of the picture on a different worksheet.
IXLPicture CopyTo(IXLWorksheet targetSheet)
Parameters
targetSheetIXLWorksheetThe worksheet to which the picture will be copied.
Returns
- IXLPicture
A created copy of the picture.
Delete()
Deletes this picture.
void Delete()
Duplicate()
Create a copy of the picture on the same worksheet.
IXLPicture Duplicate()
Returns
- IXLPicture
A created copy of the picture.
GetOffset(XLMarkerPosition)
Point GetOffset(XLMarkerPosition position)
Parameters
positionXLMarkerPosition
Returns
MoveTo(IXLCell)
IXLPicture MoveTo(IXLCell cell)
Parameters
cellIXLCell
Returns
MoveTo(IXLCell, IXLCell)
IXLPicture MoveTo(IXLCell fromCell, IXLCell toCell)
Parameters
Returns
MoveTo(IXLCell, Point)
IXLPicture MoveTo(IXLCell cell, Point offset)
Parameters
Returns
MoveTo(IXLCell, Point, IXLCell, Point)
IXLPicture MoveTo(IXLCell fromCell, Point fromOffset, IXLCell toCell, Point toOffset)
Parameters
Returns
MoveTo(IXLCell, int, int)
IXLPicture MoveTo(IXLCell cell, int xOffset, int yOffset)
Parameters
Returns
MoveTo(IXLCell, int, int, IXLCell, int, int)
IXLPicture MoveTo(IXLCell fromCell, int fromCellXOffset, int fromCellYOffset, IXLCell toCell, int toCellXOffset, int toCellYOffset)
Parameters
fromCellIXLCellfromCellXOffsetintfromCellYOffsetinttoCellIXLCelltoCellXOffsetinttoCellYOffsetint
Returns
MoveTo(int, int)
IXLPicture MoveTo(int left, int top)
Parameters
Returns
Scale(double, bool)
IXLPicture Scale(double factor, bool relativeToOriginal = false)
Parameters
Returns
ScaleHeight(double, bool)
IXLPicture ScaleHeight(double factor, bool relativeToOriginal = false)
Parameters
Returns
ScaleWidth(double, bool)
IXLPicture ScaleWidth(double factor, bool relativeToOriginal = false)
Parameters
Returns
WithPlacement(XLPicturePlacement)
IXLPicture WithPlacement(XLPicturePlacement value)
Parameters
valueXLPicturePlacement
Returns
WithSize(int, int)
IXLPicture WithSize(int width, int height)