Skip to content

This content is for v4.x (Alpha). Switch to the Stable version.

Details about adding and manipulating picture to a worksheet

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);
}
PropertyTypeDetails
hyperlinkPropertiesHyperlinkPropertiesAttach hyperlink to the image
imageTypeImageTypeImage extension type
anchorEditTypeAnchorEditTypeMode of picture starting point
fromAnchorPositionTop Left coordinate
toAnchorPositionBottom right X coordinate
PropertyTypeDetails
columnuint
columnOffsetuint
rowuint
rowOffsetuint