[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IWorksheet.BackgroundPictures

BackgroundPictures Property

BackgroundPictures

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.

Declaration
IBackgroundPictures BackgroundPictures { get; }
ReadOnly Property BackgroundPictures As IBackgroundPictures
Examples
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"];