Back to Devexpress

PictureCollection.AddPicture Method

officefileapi-devexpress-dot-spreadsheet-dot-picturecollection-dot-addpicture.md

latest5.8 KB
Original Source

PictureCollection.AddPicture Method

NameParametersDescription
AddPicture(SpreadsheetImageSource, Cell)imageSource, topLeftCellInserts 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, lockAspectRatioInserts a picture from the SpreadsheetImageSource object to fit in the specified range allowing you to lock the aspect ratio.
AddPicture(SpreadsheetImageSource, CellRange)imageSource, targetRangeInserts a picture from the SpreadsheetImageSource object to fit in the specified range.
AddPicture(SpreadsheetImageSource, Single, Single, Single, Single, Boolean)imageSource, x, y, width, height, lockAspectRatioInserts 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, heightInserts a picture from the SpreadsheetImageSource object at the specified location and resize it to the specified dimensions.
AddPicture(SpreadsheetImageSource, Single, Single)imageSource, x, yInserts a picture from the SpreadsheetImageSource object at the specified location.
AddPicture(Image, Cell)image, topLeftCellInserts 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, lockAspectRatioInserts an image that fits into the specified range. Allows you to lock the aspect ratio.
AddPicture(Image, CellRange)image, targetRangeInserts an image to fit in the specified range.
AddPicture(Image, Single, Single, Single, Single, Boolean)image, x, y, width, height, lockAspectRatioInserts 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, heightInserts an image at the specified location and resize it to the specified dimensions.
AddPicture(Image, Single, Single)image, x, yInserts a picture from the Image object at the specified location.
AddPicture(String, Cell)filename, topLeftCellInserts 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, lockAspectRatioInserts a picture from a file to fit in the specified range allowing you to lock the aspect ratio.
AddPicture(String, CellRange)filename, targetRangeInserts a picture from a file to fit in the specified range.
AddPicture(String, Single, Single, Single, Single, Boolean)filename, x, y, width, height, lockAspectRatioInserts 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, heightInserts a picture from a file at the specified location and resizes it to the specified dimensions.
AddPicture(String, Single, Single)filename, x, yInserts a picture from a file at the specified location.