Skip to main content
Row

PictureCollection.AddPicture Method

Name Parameters Description
AddPicture(SpreadsheetImageSource, Cell) imageSource, topLeftCell Inserts a picture from the SpreadsheetImageSource object so that the top left corner of the picture is located at the specified cell.
AddPicture(SpreadsheetImageSource, CellRange, Boolean) imageSource, targetRange, lockAspectRatio Inserts a picture from the SpreadsheetImageSource object to fit in the specified range allowing you to lock the aspect ratio.
AddPicture(SpreadsheetImageSource, CellRange) imageSource, targetRange Inserts a picture from the SpreadsheetImageSource object to fit in the specified range.
AddPicture(SpreadsheetImageSource, Single, Single, Single, Single, Boolean) imageSource, x, y, width, height, lockAspectRatio Inserts a picture from the SpreadsheetImageSource object at the specified location and resize it to the specified dimensions allowing you to lock the aspect ratio.
AddPicture(SpreadsheetImageSource, Single, Single, Single, Single) imageSource, x, y, width, height Inserts a picture from the SpreadsheetImageSource object at the specified location and resize it to the specified dimensions.
AddPicture(SpreadsheetImageSource, Single, Single) imageSource, x, y Inserts a picture from the SpreadsheetImageSource object at the specified location.
AddPicture(Image, Cell) image, topLeftCell Inserts a picture from the Image object so that the top left corner of the picture is located at the specified cell.
AddPicture(Image, CellRange, Boolean) image, targetRange, lockAspectRatio Inserts an image that fits into the specified range. Allows you to lock the aspect ratio.
AddPicture(Image, CellRange) image, targetRange Inserts an image to fit in the specified range.
AddPicture(Image, Single, Single, Single, Single, Boolean) image, x, y, width, height, lockAspectRatio Inserts a picture from a file at the set location and resizes it to the specified dimensions. Allows you to lock the aspect ratio.
AddPicture(Image, Single, Single, Single, Single) image, x, y, width, height Inserts an image at the specified location and resize it to the specified dimensions.
AddPicture(Image, Single, Single) image, x, y Inserts a picture from the Image object at the specified location.
AddPicture(String, Cell) filename, topLeftCell Inserts a picture from a file so that the top left corner of the picture is located at the specified cell.
AddPicture(String, CellRange, Boolean) filename, targetRange, lockAspectRatio Inserts a picture from a file to fit in the specified range allowing you to lock the aspect ratio.
AddPicture(String, CellRange) filename, targetRange Inserts a picture from a file to fit in the specified range.
AddPicture(String, Single, Single, Single, Single, Boolean) filename, x, y, width, height, lockAspectRatio Inserts a picture from a file at the specified location and resizes it to the specified dimensions allowing you to lock the aspect ratio.
AddPicture(String, Single, Single, Single, Single) filename, x, y, width, height Inserts a picture from a file at the specified location and resizes it to the specified dimensions.
AddPicture(String, Single, Single) filename, x, y Inserts a picture from a file at the specified location.