[]
Gets the collection of background pictures on the worksheet or chart sheet.
The returned IBackgroundPictures object provides access to all IBackgroundPicture objects associated with the sheet.
IBackgroundPictures BackgroundPictures { get; }
ReadOnly Property BackgroundPictures As IBackgroundPictures
IBackgroundPictures backgroundPictures = worksheet.BackgroundPictures;
using (MemoryStream stream = CreateSampleImageStream())
{
IBackgroundPicture createdPicture = backgroundPictures.AddPicture(stream, ImageType.PNG, 12, 18, 120, 80);
createdPicture.Name = "Watermark";
}
int count = backgroundPictures.Count;
IBackgroundPicture picture = backgroundPictures[0];
IBackgroundPicture namedPicture = backgroundPictures["Watermark"];