This content is for v4.x (Alpha). Switch to the Stable version.
Details about adding and manipulating picture to a worksheet
Basic Code Sample
Section titled βBasic Code Sampleβpublic void AddPicture() { Worksheet worksheet = excel.AddSheet("Data4"); worksheet.AddPicture("./TestFiles/tom_and_jerry.jpg", new() { imageType = ImageType.JPEG, from = new() { column = 6, row = 6 }, to = new() { column = 8, row = 8 } }); Assert.IsTrue(true); }
ExcelPictureSetting
Options
Section titled βExcelPictureSetting OptionsβProperty | Type | Details |
---|---|---|
hyperlinkProperties | HyperlinkProperties | Attach hyperlink to the image |
imageType | ImageType | Image extension type |
anchorEditType | AnchorEditType | Mode of picture starting point |
from | AnchorPosition | Top Left coordinate |
to | AnchorPosition | Bottom right X coordinate |
AnchorPosition
Options
Section titled βAnchorPosition OptionsβProperty | Type | Details |
---|---|---|
column | uint | |
columnOffset | uint | |
row | uint | |
rowOffset | uint |