GemBox.Spreadsheet

ExcelWorksheet.Pictures Property

Gets ExcelPictureCollection containing images.

public ExcelPictureCollection Pictures {get;}

Remarks

This feature is supported only in xlsx file format. Picture formats that are supported are listed in ExcelPictureFormat.

Example

Following code demonstrates how to use images. It shows next features:

  1. bmp, jpeg loading
  2. bmp, jpeg loading with custom coordinates and dimensions
[Visual Basic]
    sheet.Pictures.Add( "Image.bmp" ) 
    sheet.Pictures.Add( "Image.bmp", New Rectangle(10, 50, 100, 100) )
[C#]
    sheet.Pictures.Add( "Image.bmp" );
    sheet.Pictures.Add( "Image.bmp", new Rectangle( 10, 50, 100, 100 ) );

See Also

ExcelWorksheet Class | GemBox.Spreadsheet Namespace | ExcelPictureCollection | ExcelPicture