You can add pictures or images to the sheet.
You can move or resize the image by dragging with the mouse. Images can be selected by using the left mouse button. Multiple images can be selected with the Ctrl + Shift keys plus the left mouse button. You can also use the Tab or Shift + Tab keys to select an image if there are multiple images. Standard cut, copy, and paste keys also work with images.
Images can be exported or imported to XLSX or XML files.
Use the AddPicture method to add images.
The following code uses the AddPicture method to add the image.
CS |
Copy Code |
---|---|
gcSpreadSheet1.Sheets[0].AddPicture("png", new Uri("C:\\artwork\\chartarea.png")); |
VB |
Copy Code |
---|---|
GcSpreadSheet1.Sheets(0).AddPicture("png", new Uri("C:\artwork\chartarea.png")) |