

'Declaration<DefaultMemberAttribute("Item")> Public Class PictureCollection Inherits WorksheetElement
'UsageDim instance As PictureCollection
[DefaultMember("Item")] public class PictureCollection : WorksheetElement
using( var workbook = Workbook.Create( "test.xlsx") ) { // Get the first worksheet. A workbook contains at least 1 worksheet. var worksheet = workbook.Worksheets[ 0 ]; var stream = new FileStream( PictureSampleResourcesDirectory + @"balloon.jpg", FileMode.Open, FileAccess.Read ); // Add the stream picture in cell A4 and extend it to cell E12. var filenamePicture = worksheet.Pictures.Add( stream, "A4", "E12" ); // Add the filename picture with its top left corner in 15th row and 1st column. var streamPicture = worksheet.Pictures.Add( PictureSampleResourcesDirectory + @"balloon.jpg", 14, 0 ); workbook.Save(); }
System.Object
Xceed.Workbooks.NET.WorkbookElement
Xceed.Workbooks.NET.WorksheetElement
Xceed.Workbooks.NET.PictureCollection
| Name | Description | |
|---|---|---|
![]() | Count | Returns the amount of Picture in the current worksheet. |
![]() | Item | Overloaded. Returns the Picture located at the specific index. |
| Name | Description | |
|---|---|---|
![]() | Add | Overloaded. Adds a new Picture in the PictureCollection. |
![]() | Clear | Removes all Pictures from the PictureCollection. |
![]() | Contains | |
![]() | GetEnumerator | |
![]() | Remove | Overloaded. Removes a Picture from the PictureCollection. |
![]() | RemoveAt | Removes a Picture from the PictureCollection by using an index to locate it in the collection. |
.NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.
.NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.